http://www.cross-party.com/programs/testcidevops/ (トークセッション)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctx = canvas.getContext '2d' | |
img = new Image() | |
img.src = 'hoge.png' | |
img.onload = -> | |
ctx.drawImage img, 0, 0, 100, 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myDeferredA = (state) -> | |
deferred = $q.defer() | |
successMsg = 'Success!' | |
errorMsg = 'Error!' | |
setTimeout( -> | |
$scope.$apply -> | |
if state == 0 | |
deferred.resolve successMsg | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sprite-map: sprite-map("sprite/*.png"); | |
%sprite-base{ | |
$sprite-path: sprite-path($sprite-map); | |
$sprite-width: image-width("sprite/"#{$sprite-path}) / 2; | |
$sprite-height: image-height("sprite/"#{$sprite-path}) / 2; | |
background-image: sprite-url($sprite-map); | |
background-size: $sprite-width $sprite-height; | |
background-repeat: no-repeat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
.block { | |
background-color: black; | |
.block__elem1 { background-color: tomato;} | |
&__elem2 { background-color: chocolate; } | |
& &__elem3 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.1) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/*----example1----*/ | |
%example { | |
color: red; | |
%element { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.3) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/*----ex1----*/ | |
%block1 { | |
color: red; | |
&--modifier { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
/* 1 */ | |
.list { | |
%list__item { | |
background: limegreen; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
/* 0: これだとBlockの子要素になっちゃう */ | |
.list { | |
%list__item { | |
background: limegreen; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
content = [] | |
process.stdin.setEncoding "utf8" | |
process.stdin.resume() | |
process.stdin.on "data", (chunk) -> | |
content.push chunk | |
process.stdin.on "end", () -> |
OlderNewer