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 ( | |
"fmt" | |
//"os" | |
//"regexp" | |
"strings" | |
"encoding/json" | |
"github.com/SlyMarbo/rss" | |
"github.com/moovweb/gokogiri" |
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
<script type="text/javascript"> | |
$(function() { | |
$("#expand-copyrights").click(function(event) { | |
alert('ooo'); | |
event.preventDefault(); | |
alert('ooo'); | |
$("#extended-copyrights").show(); | |
}); | |
}); | |
</script> |
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
Xft.dpi: 96 | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
Xft.lcdfilter: lcddefault | |
XTerm*utf8: 2 | |
! to match gnome-terminal "Linux console" scheme |
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 | |
i3-msg 'workspace 2; rename workspace 2 to Apple;' | |
i3-msg 'workspace Apple; exec chrome --new-window;' | |
i3-msg 'workspace Apple; exec ~/.i3/xterm_in_directory ~/work/apple;' |
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
def store_dir | |
"uploads/" + case model.class | |
when Gallery | |
model.gallery.page.site.id | |
when Content | |
model.content.page.site.id | |
when MenuCategory | |
model.menu_category.menu.page.site.id | |
else | |
model.site.id |
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
set nocompatible | |
set backspace=indent,eol,start | |
set ignorecase | |
set t_Co=256 | |
colorscheme murphy | |
set guioptions-=T | |
set expandtab | |
set autoindent | |
set shiftwidth=2 |
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
SHELL=/bin/bash | |
# m h dom mon dow command | |
0 0 * * * /.../run_in_current rake db:backup |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include "bigint.h" | |
/* this library provides for a bigint type, which can hold numbers of an unlimited length. | |
You can add them together as well.*/ | |
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 ActiveRecord::Base | |
def self.fake_model(*columns_arr) | |
alias_method :save, :valid? | |
def columns | |
@columns ||= [] | |
end | |
@columns ||= [] |
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
#!/usr/bin/ruby | |
=begin | |
Depends on recent mplayer with libfaac and libx264 installed before compiling/installing mplayer. | |
Also, to read AAC audio, libfaad, and to read MP3 audio, libmp3lame, must be installed before compiling/installing mplayer. | |
If these requirements are not met, don't even try to run this script. | |
Mencoder may warn about "REMEMBER: MEncoder's libavformat muxing is presently broken"; this is irrelevant for encoding videos in H.264 for the iPod Touch/iPhone, | |
as they don't use B-frames. | |
Usage: |