krokis / layla Goto Github PK
View Code? Open in Web Editor NEWA CSS language
Home Page: http://laylang.org
License: Other
A CSS language
Home Page: http://laylang.org
License: Other
#ie {
color: red
color: red !important
_color: red
*color: red
+color: red
*+color: red
color: red\9
color: red\0
color: red\9\0
}
http://browserhacks.com/
https://gist.github.com/necolas/983116
http://mathiasbynens.be/demo/css-hacks
> foo: 2+1
SyntaxError - "Unexpected `don't know what` type or value. Expected `Punc` (;) at 7"
> foo: 2-1
SyntaxError - "Unexpected `don't know what` type or value. Expected `Punc` (;) at 7"
Expected:
foo: 3;
foo: 1;
So we can "protect" CSS and our own keywords (true, false, null)
It's kind of huge and does not quite meet our needs (ie: does not play well with data URIs). Try to craft a custom URL parser/emitter.
Allow to call a method changing the order of the arguments by specifying their name.
Add sin
, cos
, tan
, asin
, acos
and atan
methods to Number
Support Shadow DOM syntax:
>>>
:host
, :host()and :host-context()
::shadow
::content
And others:
::region
@scope
font: 16px/1em // `16px/1em`
font: 16px/20px // `16px/20px`
font: 16px / 20px // 0.8
> a = () { return a + b }
[Function]
> a()
In favour of .has?
Just for fun:
1£ = 1.38€
Implement Ctrl+L to clear screen
Use something like big.js or decimal.js
foo / 3
TypeError: Cannot call method 'call' of undefined
at String../ (C:\Users\Jaume\Layla\src\lib\object\regexp.coffee:124:20)
at String.Object.. (C:\Users\Jaume\Layla\src\lib\object.coffee:50:7)
at String.Object.operate (C:\Users\Jaume\Layla\src\lib\object.coffee:21:7)
at Evaluator.evaluateBinaryOperation (C:\Users\Jaume\Layla\src\lib\evaluator.coffee:235:14)
at Evaluator.evaluateOperation (C:\Users\Jaume\Layla\src\lib\evaluator.coffee:239:8)
at Evaluator.evaluateNode (C:\Users\Jaume\Layla\src\lib\evaluator.coffee:46:29)
at Interface.<anonymous> (C:\Users\Jaume\Layla\src\bin\layla.coffee:166:38)
at Interface.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.emit (events.js:98:17)
at emitKey (readline.js:1095:12)
at ReadStream.onData (readline.js:840:14)
at ReadStream.emit (events.js:95:17)
at ReadStream.<anonymous> (_stream_readable.js:764:14)
at ReadStream.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
at readableAddChunk (_stream_readable.js:165:9)
at ReadStream.Readable.push (_stream_readable.js:127:10)
at TTY.onread (net.js:528:21)
Should throw a "cannot operate..." error.
Add a random
method to enumerables that picks one (or more) random items from the collection. This way a range can be used to generate random integer numbers:
a: (0..1).random // Generate a random number between 0 and 1
b: (0..10).random // Generate a random number between 0 and 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.