Skip to content

Instantly share code, notes, and snippets.

David Kaneda davidkaneda

Block or report user

Report or block davidkaneda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidkaneda
davidkaneda / noise.js
Created Apr 1, 2012
Noise in Canvas + JS
View noise.js
var canvas = document.getElementById("acanvas");
var w = canvas.width = 200;
var h = canvas.height = 200;
var context = canvas.getContext("2d");
for(i=0;i<w;i++) {
for(j=0;j<h;j++) {
var num = Math.floor(Math.random()*255);
View _user-select.scss
@mixin user-select($select) {
$select: unquote($select);
@include experimental(user-select, $select,
-moz, -webkit, not -o, not -ms, -khtml, official
);
}
View color-overlay.scss
// Use @include colorize('image.png', red, 0.5)
@mixin colorize($image, $color, $opacity) {
background: $color;
$color: transparentize($color, 1 - $opacity);
background: -webkit-linear-gradient(left, $color, $color), url($image);
background: -moz-linear-gradient(left, $color, $color), url($image);
background: -ms-linear-gradient(left, $color, $color), url($image);
background: -o-linear-gradient(left, $color, $color), url($image);
}
View book.scss
&.bg-blueprint-grid {
@include background-blueprint-grid(
$width: 50px, $width-alt: 5px
);
}
&.bg-noise {
@include background-noise(
$opacity: 1
);
View _toolbar.scss
@import '../global';
$global_row_height: 2.5em;
$toolbar_spacing: .2em;
$default_toolbar_gradient: 'matte';
@mixin sencha-toolbar {
.x-toolbar {
height: $global_row_height;
You can’t perform that action at this time.