Skip to content

Instantly share code, notes, and snippets.

View patolo's full-sized avatar

Patrik Olofsson patolo

View GitHub Profile
@patolo
patolo / install-jenkins-on-ubuntu-12-10.sh
Created November 30, 2015 12:31 — forked from simkimsia/install-jenkins-on-ubuntu-12-10.sh
Install jenkins on a fresh ubuntu 12.10.
#!/bin/bash
###
#
# Copyright (c) 2013 KimSia Sim
#
# Ubuntu 12.10 based install jenkins and other related plugins
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
# bash -c "$(curl -fsSL https://gist.github.com/simkimsia/4473000/raw/5e301a3bd399096e7cbbe3b1a877997a117aa7a3/install-jenkins-on-ubuntu-12-10.sh)"

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
var EventEmitter = require('events').EventEmitter,
_ = require('lodash');
/**
* Creates an action functor object
*/
exports.createAction = function() {
var action = new EventEmitter(),
eventLabel = "action",

Examples of RESTful API calls for E-commerce platforms

These examples are type 3 RESTful API requests and responses. The JSON-HAL specification is used to implement HATEOAS.

Some of the examples are based on my work as architect of the RESTful API at http://www.hautelook.com. All proprietary information has been removed.

Relevant links

@mixin keyframesteps($name, $steps, $startx, $endx) {
@keyframes #{$name}
{
@for $i from 0 through $steps {
$diff: ($endx - $startx) / $steps;
#{($i/$steps*100)}% {
$x: ($i * $diff) + $startx;
background-position: $x 0;
}
}

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

A bunch of links to blog posts, articles, videos, etc for learning AngularJS. This list is in its early stages. Feel free to submit a pull request if you have some links/resources to add. Also, I try to verify that the articles below have some real content (i.e. aren't 2 paragraph blog posts with little information) to ensure I'm not listing "fluff" pieces. If you have an idea for a better way to organize these links, please let me know. As I find similar posts in the "General Topics" section, I will break them out into their own categories.

Books