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 'maruku' | |
require 'nokogiri' | |
module Jekyll | |
class ExcerptBuilder < Generator | |
safe true | |
priority :high | |
EXCERPT_LENGTH = 160 |
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.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.initConfig({ | |
watch: { | |
sourceFiles: { | |
files: ['themes/**','scaffolds/**','scripts/**','source/**','app.js'], | |
tasks: 'shell:hexoGen' | |
}, |
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
myApp.controller('MyCtrl', ['$scope','storageService', | |
function($scope, storageService) { | |
var brain = storageService.getBrain(); | |
$scope.items = []; | |
$.extend($scope, brain); // load from memory | |
$scope.addItem = function(item) { | |
$scope.items.push(item); | |
$scope.refresh(); |
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
" Swig syntax | |
" Language: Swig | |
" Maintainer: Brett | |
" Last Change: Jul 6th, 2013 | |
" Version: 0.1 | |
" URL: https://github.com/brettof86/vim-swigjs | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") |
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
public T Rescue<T>(T defValue, Func<T> fn) | |
{ | |
try | |
{ | |
return fn(); | |
} | |
catch | |
{ | |
return defValue; | |
} |
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
#SingleInstance force | |
SetTitleMatchMode 2 | |
RControl & UP:: | |
Send {Volume_Up} | |
return | |
RControl & DOWN:: |
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
#SingleInstance force | |
SetTitleMatchMode 2 | |
RControl & UP:: | |
Send {Volume_Up} | |
return | |
RControl & DOWN:: | |
Send {Volume_Down} | |
return |
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
#SingleInstance force | |
RControl & UP:: | |
Send {Volume_Up} | |
return | |
RControl & DOWN:: | |
Send {Volume_Down} | |
return |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: calibre | |
# Required-Start: network | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Controls the Calibre content server | |
# Description: Controls the Calibre content web server | |
# |
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
" vim: se ff=unix : | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Variables | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let $DBVIMRC = '~/Dropbox/configs/dotfiles/.vimrc' | |
let $DBGVIMRC = '~/Dropbox/configs/dotfiles/.gvimrc' | |
" Auto watch vimrc and reload it if it changes | |
augroup myvimrc | |
au! |
OlderNewer