-
Graphical git log
git log --graph --oneline --decorate
-
Difference between local file and remote
git diff origin/master path/to/file.ext
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
$ sudo aptitude update && sudo aptitude install gnome-do |
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
javascript:(function(){ window.open('https://mail.google.com/tasks/canvas','myWindow', 'status=1, height=600,width=600,resizable = 0,location=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
# Python script to find missing lines from two different files | |
import sys | |
import string | |
if len(sys.argv) < 4: | |
print "Usage: findmissing.py <master-file> <test-file> <result-file>" | |
sys.exit() | |
else: | |
file1 = sys.argv[1]; |
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
set a to item 1 of getFrontApp() | |
if a contains "Finder" then | |
tell application "Finder" | |
set the_folder to (folder of the front window) as text | |
set the_folder to POSIX path of the_folder | |
set the_folder to (do shell script "echo " & the_folder & " | sed 's/ /\\\\ /g'") | |
end tell | |
tell application "Terminal" | |
do script "cd " & the_folder & ";clear;pwd" | |
activate |
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
set applist to getFrontApp() | |
-- screen resolution | |
set screen to {1280, 800} | |
set menubar to getMenuSize() | |
set dock to getDockSize() | |
set a to item 1 of getFrontApp() | |
set t to (item 2 of menubar) | |
set l to 0 | |
set h to 600 |
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
javascript:(function(){%20window.open('http://talkgadget.google.com/talkgadget/popout','myWindow',%20'status=1,%20height=600,width=400,resizable%20=%200,location=0');%20})(); |
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
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial = SoftwareSerial(10, 11);; // RX, TX | |
void setup() { | |
pinMode(10,INPUT); | |
pinMode(11,OUTPIT); | |
mySerial.begin(19200);// this connects to the other USART device | |
Serial.begin(19200); // this one connects to a computer via USB | |
while (!Serial) { |
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 express = require('express'); | |
var router = express.Router(); | |
var babel = require("babel-core"); | |
var React = require('react'); | |
// Get ReactDOMServer for server side rendering | |
var ReactDOMServer = require('react-dom/server'); | |
// Compile code transformed by babel.transformFileSysnc | |
module._compile(babel.transformFileSync('./public/js/components/header.js').code); | |
// Save it to a accessible header before moudle.exports gets replaaced |
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> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0; padding: 0 } | |
#map_canvas { | |
position: absolute; | |
width: 100%; |
OlderNewer