This file contains hidden or 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
###################################################### | |
# Project: http://code.google.com/p/51-android/ # | |
# File: /etc/udev/rules.d/51-android.rules # | |
# Author: snowdream <[email protected]> # | |
# Date: 2010.06.07 # | |
###################################################### | |
#Acer | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0660", OWNER="snowdream" |
This file contains hidden or 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 colour = ''; | |
for (var i = 250; i > 0; i = i - 5) { | |
colour = 'background-color: rgb(' + i + ',' + i + ',' + i + ')'; | |
console.log(colour); | |
document.write('<div style="float: left;margin: 5px; width:90px;height:30px;' + colour+ '"></div>'); | |
} |
This file contains hidden or 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
#!/bin/bash | |
filename=$1 | |
basename=`basename $1 .md` | |
markdown-pdf $1 -o $basename.pdf -s /home/geronimo/Dropbox/templates/style.css |
This file contains hidden or 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
#!/bin/bash | |
mkdir git-repo | |
cd git-repo | |
git init | |
touch my_code.sh | |
git add my_code.sh | |
echo "echo Hello" > my_code.sh | |
git commit -am 'initial' | |
git checkout -b new_branch | |
echo "echo \"Hello World\"" > my_code.sh |
This file contains hidden or 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 request = require('request'); | |
var async = require('async'); | |
var xml2js = require('xml2js'); | |
var parseString = require('xml2js').parseString; | |
var parser = new xml2js.Parser( | |
{ | |
preserveChildrenOrder: true, | |
explicitArray: false, | |
charkey: "content", |
This file contains hidden or 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 async = require('async'); | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var _ = require('lodash'); | |
var url = 'http://programmingexcuses.com'; | |
var excuses = []; |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 5 columns, instead of 6 in line 1.
This file contains hidden or 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
Name,Gender,"preferred language",startDate,endDate | |
Barbara McFinley,Female,JavaScript,2015-13-01,, |
This file contains hidden or 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
// file: index.js | |
var _ = require("lodash"); | |
var express = require("express"); | |
var bodyParser = require("body-parser"); | |
var jwt = require('jsonwebtoken'); | |
var passport = require("passport"); | |
var passportJWT = require("passport-jwt"); |
This file contains hidden or 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
package main | |
import ( | |
"log" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"runtime" |
This file contains hidden or 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
net stop w32time | |
net start w32time | |
w32tm /resync /nowait | |
# $trigger = New-JobTrigger -AtStartup -RandomDelay 00:00:30 | |
# Register-ScheduledJob -Trigger $trigger -FilePath C:\Users\jonat\ntp-trigger.ps1 -Name StartupTriggerNTP |