The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord, when I lay My vengeance upon thee. <--- end of first paragraph - soft break --> Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the
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
// Async Before App Init | |
angular.module('app', [/*...*/]) | |
.config(function () { | |
// register all routes and stuff | |
}) | |
.run(function ($rootScope) { | |
$rootScope.$on('$stateChangeStart', function (AsyncValue) { | |
if (!AsyncValue.pageAvailable) { | |
// send back to home | |
} |
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
/* | |
If we list all the natural numbers below 10 that are multiples of | |
3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. | |
Find the sum of all the multiples of 3 or 5 below 1000. | |
*/ | |
var result; | |
result = Array.apply(0, new Array(1000)) |
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
--[[ | |
If we list all the natural numbers below 10 that are multiples of | |
3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. | |
Find the sum of all the multiples of 3 or 5 below 1000. | |
]] | |
local counter = 0 | |
local limit = 1000 | |
local sum = 0 |
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
{- | |
If we list all the natural numbers below 10 that are multiples of | |
3 or 5,we get 3, 5, 6 and 9. The sum of these multiples is 23. | |
Find the sum of all the multiples of 3 or 5 below 1000. | |
-} | |
main = | |
print (sum [x | x <- [1..999], mod x 5 == 0 || mod x 3 == 0]) |
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
(function (doc) { | |
doc.body.style.fontSize = '115%'; | |
doc.body.style.margin = '0 auto'; | |
doc.body.style.maxWidth = '37em'; | |
var count, | |
rPage = /\[\s*?page\s*?(\d+?)\s*?\]/i, | |
TOP = 'top-of-document'; | |
function turn(delta) { |
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.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin size($size, $modulo: 5) { | |
@if $size % $modulo == 0 { | |
width: unquote('#{$size}%') !important; | |
} | |
} |
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
// What does this code achieve? | |
function toArray(args) { | |
return Array.prototype.slice.call(args); | |
} | |
// When would you use it? Why does it need to be implemented this way? And what about the following code? | |
function log(args) { | |
Function.prototype.apply.call(console.log, console, args); |
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
/*jshint strict:false*/ | |
/*global module*/ | |
module.exports = function(grunt) { | |
grunt.registerHelper("wrapp", function (src, argList, args) { | |
return ";(function (%1) {\n%2\n}(%3));" | |
.replace("%1", argList || "") | |
.replace("%3", args || "") | |
.replace("%2", src); | |
}); |
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
(function (nav, win, doc) { | |
"use strict"; | |
var lib = "usercam" | |
, anchor = [true, true] // === top, left | |
, pending | |
, pip; | |
nav.getUserMedia = | |
(nav.getUserMedia || nav.webkitGetUserMedia || nav.mozGetUserMedia || nav.msGetUserMedia); |
OlderNewer