#Software#
##Downloads##
- Java Runtime
- Chrome
- Firefox
- Dropbox
- Google Drive
- PHPStorm
- Alfred v2
#Software#
##Downloads##
let mapleader="," | |
" load plugins | |
execute pathogen#infect() | |
let g:EasyMotion_leader_key = '<Leader>' | |
map <F2> :NERDTreeToggle<CR> | |
let NERDTreeShowLineNumbers=1 | |
let NERDTreeShowHidden=1 | |
" General configuration |
TOC for Nov 27 2013 UTC +8 Singapore, Hackerspace SG, Vagrant + VirtualBox + PHPUnit workshop
Windows Users • Putty - SSH Download from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
var app = angular.module('validationExample', []); | |
app.controller('signupController', ['$scope', function($scope) { | |
$scope.submitted = false; | |
$scope.signupForm = function() { | |
if ($scope.signup_form.$valid) { | |
} else { | |
$scope.signup_form.submitted = true; | |
} |
This is a more wordy, narrative accompaniment to my pretty bare presentation about d3 that I gave to the jQuery DC Meetup.
Which is to say, d3 can be used for building things, but the 'atomic parts' are lower-level than bar graphs or projections or so on. This is a powerful fact. It also means that d3 is a good basis for simple interfaces, like Vega.js, that make its power accessible in other ways.
<?php | |
//add this file to Lib/Email folder | |
App::uses('CakeEmail', 'Network/Email'); | |
class PasswordEmail { | |
private $emailConfig = 'gmail'; | |
private $sender = '[email protected]'; | |
private $from; |
class ViewManager(models.Manager): | |
def bulk_create(self, *args, **kwargs): | |
raise NotImplementedError | |
def create(self, *args, **kwargs): | |
raise NotImplementedError | |
def get_or_create(self, *args, **kwargs): | |
raise NotImplementedError |
// Facebook SDK | |
angular.module('facebook', []) | |
.directive('fb', ['$FB', function($FB) { | |
return { | |
restrict: "E", | |
replace: true, | |
template: "<div id='fb-root'></div>", | |
compile: function(tElem, tAttrs) { | |
return { | |
post: function(scope, iElem, iAttrs, controller) { |
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).