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
<?php | |
class Template | |
{ | |
function __construct($items, Closure $render) | |
{ | |
foreach ($items as $i) { |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>LinkedIn Colleague Search</title> | |
<style type="text/css" media="screen"> | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
<?php defined('SYSPATH') or die('No direct script access.'); | |
abstract class Controller_SiteLayout_Base extends Controller { | |
public $template = 'layout/base/page'; | |
public $auto_render = TRUE; | |
/** | |
* The before() method is called before your controller action. |
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
say -r 450 -v Trinoids "Frimmin' on the frim fram, frimmin on the frim" |
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 () { | |
var UNHAPPY_SEQUENCE = [4, 16, 37, 58, 89, 145, 42, 20, 4]; | |
var UNHAPPY_SEQUENCE_LENGTH = UNHAPPY_SEQUENCE.length; | |
function calculate(number) { | |
var str = '' + number; | |
var length = str.length; | |
var total = 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
// http://en.wikipedia.org/wiki/Luhn_algorithm | |
var _ = require('lodash'); | |
var cc = '7992739871'; | |
function computeChecksum(cc) { | |
return _.reduce(cc, function (memo, value, index) { | |
var value = parseInt(value, 10); |