whiskers.js
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
curl -s http://USER:[email protected]/export/ |
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
require 'pinboard' | |
require 'json' | |
pinboard = Pinboard::Client.new token: 'your:api:token' | |
readability = JSON.parse(File.read('path/to/your/readability/JSON/file')) | |
readability.each |article| do | |
pinboard.add({ | |
:url => article['article__url'], |
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
God.watch do |w| | |
w.uid = "git" | |
w.gid = "git" | |
w.name = "camo" | |
w.pid_file = "/data/camo/tmp/camo.pid" | |
w.interval = 30.seconds | |
w.env = { | |
"PORT" => '8080', | |
"CAMO_KEY" => '0x24FEEDFACEDEADBEEFCAFE' |
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
A search query like “CNN Obama” will mostly show CNN pages that are related to Obama. However, if we modify the query to look like “CNN AROUND(2) Obama,” you get results where the two terms are written on the page in close proximity. | |
The higher the number, the less the proximity. | |
Daniel Russell, who first wrote about the AROUND operator, says that AROUND is especially useful when the documents are rather long (think book-length articles) while a comment points out that it could be also be useful “when searching for quotes, speeches or a song that’s stuck in your head, but you can only think of a few words from it.” | |
Google’s wildcard search operator, represented by Asterisk (Obama * CNN), may achieve similar results but with AROUND, you even get to specify the distance between the two search terms. Do remember to write AROUND in all CAPS else it won’t work. |
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
<?php | |
/* | |
* phpLive PHP Library v1.0.0-alpha | |
* http://phplive.org/ | |
* | |
* To see the documentation, visit: | |
* http://phplive.org/docs | |
* | |
* To report/view bugs, visit: | |
* http://bugs.phplive.org |
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
<?php | |
$longUrl = 'http://www.your-log-url-here.......'; | |
$apiKey = 'Your Google Api Key here'; | |
//You can get API key here : http://code.google.com/apis/console/ | |
$postData = array('longUrl' => $longUrl, 'key' => $apiKey); | |
$jsonData = json_encode($postData); | |
$curlObj = curl_init(); |
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
class MainView extends JView | |
constructor:-> | |
super | |
@terminal = new KDView | |
cssClass: "terminal" | |
@terminal.$().css | |
width: "100%" | |
height: 300 | |
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
Telephasic 1.0 by HTML5 UP | |
html5up.net | @n33co | |
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) | |
This is Telephasic, a brand new site template for HTML5 UP. It features a sharp, modern | |
design inspired by omfg everything, and makes good use of SVGs to ensure stuff looks | |
nice and crispy on retina displays. | |
A quick note before you jump in: this template is built VERY different to my other stuff |
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 gistPrefix = 'https://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = $('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
gists = $('a.gist').map(function(n, a) { | |
a = $(a); | |
var href = a.attr('href'); |