- One
- Two
- Three
- Four
- Five
But really easy to re-sort because the items aren't really numbered:
1. one
/* Capability css-animation is prefixed with -moz because omitting it would affect 1.03559% of users and the threshold is 0.1%. */ | |
@-moz-keyframes foo { | |
0% { | |
/* Content for ie 8 omitted. | |
Not allowed in the current scope: The ie 8 is incompatible with -moz. */ | |
opacity: 0; } | |
100% { | |
/* Content for ie 8 omitted. | |
Not allowed in the current scope: The ie 8 is incompatible with -moz. */ |
// DISCLAIMER: This is not necessarily good code. It’s just code that I wrote | |
// as quickly as possible to do each task. | |
// 1 | |
return 2*i; | |
// 2 | |
return !(i%2); |
jQuery.request_scroll = (callback) -> | |
### | |
Callback for our scroll event - just | |
keeps a track on the last scroll value | |
### | |
onScroll = -> | |
lastScrollY = window.scrollY | |
requestTick() |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
But really easy to re-sort because the items aren't really numbered:
1. one
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
@function gray($intensity, $alpha: 1) { | |
@return rgba($intensity, $intensity, $intensity, $alpha); | |
} | |
/* Thanks Chris Eppstein for simplifying my code! */ | |
/* Testing our new function */ | |
body { | |
background: gray(50%); | |
background: gray(255, .2); |
// In app.js or main.js or whatever: | |
// var myApp = angular.module('askchisne', ['ngSanitize', 'ngAnimate', 'ui.bootstrap', 'ui.bootstrap.tpls']); | |
// This filter makes the assumption that the input will be in decimal form (i.e. 17% is 0.17). | |
myApp.filter('percentage', ['$filter', function ($filter) { | |
return function (input, decimals) { | |
return $filter('number')(input * 100, decimals) + '%'; | |
}; | |
}]); |
// how to install/first steps http://dalekjs.com/pages/getStarted.html#install | |
// how to use it within grunt: https://www.npmjs.org/package/grunt-dalek | |
module.exports = { | |
'Can access the DOM': function (test) { | |
test.open('http://dalekjs.com/') | |
// the execute method executes JavaScript within a browser & also has | |
// full access to the DOM | |
.execute(function (message) { | |
// the "data" method is a simple wrapper around a key/value store |
/** | |
* A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
* | |
* Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
* the blur parameter has to be doubled. | |
* | |
* Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) | |
* | |
* Example usage: |