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
# Custom skills (previously "skill Groups") | |
CustomSkills = [ | |
{ | |
"name"=> "web", | |
"all"=>["HTML", "CSS"], | |
"any"=>["Javascript", "CoffeeScript", "PHP", "Ruby", "ASP", "Go"], | |
}, | |
{ | |
"name"=> "frontend-developer", | |
"all"=>["HTML", "CSS"], |
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
{ "hello" : "jade" } |
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
// array style, just list the damned questions! | |
var questions = [ | |
{ | |
question: "What color is Pikachu?", | |
answers: ["Light Blue", "Brown", "Yellow", "Green"], | |
solution: "Yellow" | |
} | |
, | |
{ | |
question: "What color is Squirtle?", |
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
curl -XDELETE 'http://localhost:9200/p' | |
curl -XPOST 'http://localhost:9200/p' -d ' | |
{ | |
"index" : { | |
"analysis" : { | |
"analyzer" : { | |
"default_index" : { | |
"tokenizer" : "standard", | |
"filter" : ["lowercase", "asciifolding", "mynGram"], |
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
// model View | |
Gild.Views.ProfileTag = Backbone.View.extend({ | |
model: Gild.Models.Tag, | |
tagName: "li", | |
initialize: function(attrs) { | |
this.model.bind("change", this.render, this); | |
this.model.bind("destroy", this.remove, this); | |
}, |
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
--- | |
# Usage: http://ruhoh.com | |
# This helps parsers (and hosting platforms) determine which version is needed to compile your site. | |
# If you compile your blog yourself, setting this won't matter, but it's a nice thing to keep updated. | |
RuhohSpec: "2.1" | |
# Used for things like RSS that need the full URL to a given resource. | |
# This DOES NOT affect any of your paths or links in any way. | |
# This DOES NOT configure domain mapping. See post2.ruhoh.com for hosting options. |
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
{ | |
"login": "plusjade", | |
"data": { | |
"version": "2", | |
"market-value": { | |
"score": 3.04, | |
"confidence": 0.6, | |
"explain": [ | |
{ | |
"name": "CompaniesRank", |
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
module FolderTree | |
# Mustache block helper to quickly build folder tree heirarchies in HTML. | |
# The output uses nested unordered HTML lists. | |
# | |
# Usage: | |
# {{# folder_tree }} | |
# pages | |
# about.md | |
# posts | |
# essays |
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
# ./my-blog/plugins/pages_random.rb | |
module PagesRandom | |
# Return n random page objects. | |
# Limit can be set in config.yml: | |
# pages: | |
# random_limit: 10 | |
def random | |
limit = config['random_limit'].to_i | |
limit = limit > 0 ? limit : 5 |
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 'tmpdir' | |
# Usage: | |
# add to ruhoh-site/plugins/publish/github.rb | |
# - Your GitHub remote must be setup properly but The command will try to walk you through it. | |
# - You must have a clean working directory to publish to GitHub pages since the hook is actually triggered by commits. | |
# | |
# $ cd ruhoh-site | |
# $ bundle exec ruhoh publish github | |
class Ruhoh |