View gist:7b17026d40df3e236f5f
follow instructions here first: | |
http://sickbeard.com/install.html | |
then | |
mv my-sickbeard-install/ .sickbeard | |
sudo mv .sickbeard/init.ubuntu /etc/init.d/sickbeard | |
sudo gedit /etc/init.d/sickbeard |
View ng-i18next-filter.js
angular.module('myApp') | |
.run(['$rootScope', function ($rootScope) { | |
window.i18n.init(options, function () { | |
// When finished loading translations, trigger re-evaluation of views for translations | |
$rootScope.$digest(); | |
}); | |
}]) | |
.filter('translate', [function(){ | |
return function(key, params) { | |
// i18next needs time to initialize (loading translations). In this phase translation does not work |
View twitter-entities.js
/* | |
* twitter-entities.js | |
* This function converts a tweet with "entity" metadata | |
* from plain text to linkified HTML. | |
* | |
* See the documentation here: http://dev.twitter.com/pages/tweet_entities | |
* Basically, add ?include_entities=true to your timeline call | |
* | |
* Copyright 2010, Wade Simmons | |
* Licensed under the MIT license |
View gist:ca6bbc23fca2bcc0a564
* Empty cache | |
npm cache clean | |
* Uninstall module | |
npm uninstall [module_name] | |
* Install module version | |
npm install [module_name]@[version] |
View gist:a8a5cddcefb502431dfc
var WIDTH, HEIGHT, canvas, con, g; | |
var pxs = []; | |
var rint = 50; | |
$(document).ready(function() { | |
$('.get-year').text(new Date().getFullYear()); | |
var $clones = $(".testimonial-list li").clone().sort(function() { | |
return 0.5 - Math.random(); | |
}).slice(0, 4).removeClass("hidden"); | |
$(".testimonial-list").empty().append($clones); | |
var windowSize = function() { |
View github.css
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
View gist:3545dff26a396be35ac1
/* | |
GITHUB MARKDOWN EXTRACTOR RULES | |
https://guides.github.com/features/mastering-markdown/ | |
http://www.table-ascii.com/ | |
http://www.loc.gov/marc/specifications/specchartables.html | |
http://www.utf8-chartable.de/unicode-utf8-table.pl |
View gist:6b418da7281ca43c5786
var fs = require('fs'); | |
Int64 = require('node-int64'); | |
var varint = require('varint'); | |
var lazy = require("lazy"); | |
// http://braindrivendevelopment.com/2013/10/31/reading-a-file-in-node-js/ | |
// http://lucene.apache.org/core/3_0_3/fileformats.pdf | |
var bufferSegmentGen = fs.readFileSync('./segments.gen'); | |
var bufferSegments = fs.readFileSync('./segments_4o4'); |
View gist:3a729200f89ab2b0452b
/*********************************************************/ | |
// Exercise: Readers | |
// https://tour.golang.org/methods/11 | |
package main | |
import "code.google.com/p/go-tour/reader" | |
type MyReader struct{} |
OlderNewer