Skip to content

Instantly share code, notes, and snippets.

View Panya's full-sized avatar
🐗
boaring

Panya

🐗
boaring
View GitHub Profile
// main_page.js
tasksList: SC.ScrollView.design({
layout: { top: 30, bottom: 0, left: 0, width: 299 },
hasHorizontalScroller: NO,
contentView: SC.ListView.design({
contentBinding: 'MyApp.tasksController.arrangedObjects',
selectionBinding: 'MyApp.tasksController.selection',
rowHeight: 29,
@Panya
Panya / 001.objects.js
Created November 9, 2012 12:54
Ember.js Intro
var Person = Em.Object.extend({
firstName: '',
lastName: '',
sayHello: function() {
alert('Hello!');
}
});
var person = Person.create({
firstName: 'Mikhail',
diff --git a/lib/lexer.js b/lib/lexer.js
index a9e016a..01a14a1 100644
--- a/lib/lexer.js
+++ b/lib/lexer.js
@@ -486,14 +486,14 @@ Lexer.prototype = {
},
/**
- * '@extends' ([^{\n]+)
+ * '@extends'
diff --git a/lib/nodes/literal.js b/lib/nodes/literal.js
index 314329c..84583e7 100644
--- a/lib/nodes/literal.js
+++ b/lib/nodes/literal.js
@@ -23,6 +23,7 @@ var Literal = module.exports = function Literal(str){
Node.call(this);
this.val = str;
this.string = str;
+ this.prefixed = false;
};
diff --git a/lib/functions/index.js b/lib/functions/index.js
index fb55b71..7211a6c 100644
--- a/lib/functions/index.js
+++ b/lib/functions/index.js
@@ -1106,64 +1106,24 @@ exports.selector = function selector(sel){
return stack.length ? utils.compileSelectors(stack).join(',') : '&';
};
-function prefixNode(prefix, node) {
- switch (node.nodeName) {
jscoverage lib lib-cov
STYLUS_COV=1 make REPORTER=html-cov > coverage.html
make[328]: /bin/sh: Resource temporarily unavailable
make[328]: *** wait: No child processes. Stop.
make[328]: *** Waiting for unfinished jobs....
make[328]: *** wait: No child processes. Stop.
make[327]: *** [test-cov] Error 2
make[326]: *** [test-cov] Error 2
make[325]: *** [test-cov] Error 2
make[324]: *** [test-cov] Error 2
html {
overflow: hidden;
&:before {
position: absolute;
top: 50%; left: 50%;
margin: -10em;
border: dashed 2px;
width: 20em; height: 20em;
border-radius: 50%;
transform: skewX(20deg);
@Panya
Panya / bench
Last active August 29, 2015 14:01
preprocessors benchmark
html {
overflow: hidden;
&:before {
position: absolute;
top: 50%;
left: 50%;
margin: -10em;
border: dashed 2px;
width: 20em;
height: 20em;
@Panya
Panya / SassMeister-input.scss
Created June 24, 2014 22:59
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
$map: (key1: value1, key2: value2, key3: value3);
body {
prop1: bar;
prop2: map-get($map, 'foo');
diff --git a/docs/extend.md b/docs/extend.md
index a0e037f..92b18c6 100644
--- a/docs/extend.md
+++ b/docs/extend.md
@@ -185,3 +185,20 @@ Yielding:
}
Note that if the selector is not extended, it won't be in the resulting CSS, so it's a powerful way to create a library of extendable code. While you can insert code through mixins, they would insert the same code every time you use them, while extending placeholders would give you compact output.
+
+## Optional extending