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
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
unstage = reset HEAD | |
uncommit = reset --soft HEAD^ | |
# When doing "git git log" or some such, do not complain about "git" not | |
# being a valid Git command. This happens when copy-pasting examples, for |
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
var fs = require('fs'); | |
var npm = require('npm'); | |
var bower = require('bower'); | |
var Q = require('q'); | |
var npmConfig = JSON.parse(fs.readFileSync('package.json')); | |
var bowerConfig = JSON.parse(fs.readFileSync('bower.json')); | |
function gatherNpmInfo(dependencies) { |
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
DOESNT WORK: | |
POST /api/session HTTP/1.1 | |
Host: dev.g2m.me:8243 | |
Authorization: Basic Y2l0cml4Og== | |
Cache-Control: no-cache | |
Postman-Token: 24a359ae-4725-5106-711c-b6334ddcb729 | |
Content-Type: application/x-www-form-urlencoded | |
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
<a | |
class="add-this-event-link" | |
href="#" | |
title="Add to Calendar" | |
data-start="10-05-2014 11:38:46" | |
data-end="11-05-2014 11:38:46" | |
data-timezone="Copenhagen/Europe" | |
data-title="Summary of the event" | |
data-description="Description of the event" | |
data-location="Location of the event" |
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(e) { | |
var t = function(e, t, n) { | |
function F(e, t, n, r, i) { | |
function u(u) { | |
var a = (new Date).getTime(), | |
c = {}; | |
c.version = s, c.appID = o, c.conferenceID = encodeURIComponent(n), c.apiTS = a, r !== undefined && (c.ucID = r), f && (c.token = f.token), c.localID = encodeURIComponent(e), c.remoteID = encodeURIComponent(t), c.endpointID = l, c.browser = { | |
name: v.name, | |
ver: v.ver, | |
os: v.os |
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
var hello = require('hello'); | |
var options = { | |
txtRecord: {}, | |
subtypes: [] | |
}; | |
// Announce service (callback) | |
hello.announce('remotedebug', 'tcp', 9222, options, function(err, response) { | |
if(err) { |
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
adb devices | |
adb -s <device> shell “cat /proc/net/unix |grep devtools_remote” | |
adb -s <device> forward tcp:9222 local abstract:<service name> |
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
def latitude | |
token = 'latisquare.kenneth.io' | |
secret = '' | |
consumer = OAuth::Consumer.new(token,secret, { | |
:site => "https://www.google.com", | |
:scheme => :header, | |
:http_method => :post, | |
:request_token_path => "/accounts/OAuthGetRequestToken", |
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
require 'rubygems' | |
require 'sinatra' | |
require 'oauth2' | |
require 'json' | |
def new_client | |
OAuth2::Client.new('CLIENT ID', 'CLIENT SECRET', :site => 'https://github.com', | |
:authorize_path => '/login/oauth/authorize', :access_token_path => '/login/oauth/access_token') | |
end |
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
html { | |
} | |
.image-block { | |
vertical-align: top; | |
margin: 0px; | |
} |
OlderNewer