Employs the inline sibling trick to achieve vertical centering. Updated to make use of trig to auto-calculate values.
Forked from Oliver Turner's Pen Isometric projection using skew.
| tap "caskroom/cask" | |
| tap "denji/nginx" | |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-fonts" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "homebrew/dupes" | |
| tap "homebrew/services" | |
| tap "mongodb/brew" |
| Function::property = (prop, desc) -> | |
| Object.defineProperty @prototype, prop, desc | |
| class Person | |
| constructor: (@firstName, @lastName) -> | |
| @property 'fullName', | |
| get: -> "#{@firstName} #{@lastName}" | |
| set: (name) -> [@firstName, @lastName] = name.split ' ' | |
| p = new Person 'Leroy', 'Jenkins' |
| #!/bin/bash | |
| # | |
| # Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net). | |
| # | |
| # The record will be updated with the IP address that originates the request. | |
| # | |
| # Usage | |
| # ----- | |
| # | |
| # Create config file `/etc/he-dns-update.conf`: |
| config.json | |
| reading-image.png |
| httpProxy = require 'http-proxy' | |
| proxy = httpProxy.createProxy ws:true | |
| options = | |
| 'herp.dev': 'http://0.0.0.0:9008' | |
| 'derp.dev': 'http://0.0.0.0:3000' | |
| server = require('http').createServer (req, res) -> | |
| proxy.web req, res, { target: options[req.headers.host] }, (e) -> | |
| log_error e, req | |
| log_error = (e, req) -> return if not e |
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| do($ = window.jQuery, window) -> | |
| #ifndef __SWITCHS_H__ | |
| #define __SWITCHS_H__ | |
| #include <string.h> | |
| #include <regex.h> | |
| #include <stdbool.h> | |
| /** Begin a switch for the string x */ | |
| #define switchs(x) \ | |
| { char *__sw = (x); bool __done = false; bool __cont = false; \ |
Employs the inline sibling trick to achieve vertical centering. Updated to make use of trig to auto-calculate values.
Forked from Oliver Turner's Pen Isometric projection using skew.
| $ = require 'nodobjc' | |
| $.import 'Foundation' | |
| $.NSAutoreleasePool 'new' | |
| randChar = -> $(String.fromCharCode Math.round(Math.random() * 26) + 'a'.charCodeAt 0 ) | |
| array = $.NSMutableArray 'new' | |
| array 'addObject', randChar() for i in [1..10] |