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 . "title" "Home"}} | |
{{template "header.html" .}} | |
<header class="hero-unit" style="background-color:#A9F16C"> | |
<div class="container"> | |
<div class="row"> | |
<div class="hero-text"> | |
<h1>It works!</h1> | |
<p></p> | |
</div> |
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" | |
type Controller struct{} | |
type User struct { | |
*Controller | |
} |
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 ( | |
"time" | |
"github.com/jinzhu/gorm" | |
_ "github.com/mattn/go-sqlite3" | |
) | |
type User struct { | |
Id int64 |
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 strip_tags(text) | |
doc = Nokogiri::HTML::DocumentFragment.parse text | |
doc.inner_text | |
end |
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 gist(url) | |
"<script src='#{url}.js'></script>" | |
end |
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 markdown(content) | |
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true) | |
markdown.render(content) | |
end |
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 'lodash' | |
gulp = require 'gulp' | |
plumber = require 'gulp-plumber' | |
util = require 'gulp-util' | |
browserify = require 'browserify' | |
source = require 'vinyl-source-stream' | |
streamify = require 'gulp-streamify' | |
watchify = require 'watchify' | |
SOURCE_DIR = './source/javascripts/_src/' |
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 iTerm = Application("iTerm"); | |
var Finder = Application("Finder"); | |
var selection = [].slice.call(Finder.selection()); | |
var names = selection.map(function(item){ | |
return item.url(); | |
}); | |
iTerm.activate(); | |
var term = iTerm.currentTerminal(); |
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
import Control.Applicative | |
import System.Directory | |
main :: IO () | |
main = do | |
files <- lines <$> getContents | |
mapM_ removeFile files |
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
// ==UserScript== | |
// @name gist_link | |
// @namespace http://github.com/uzimith | |
// @include https://github.com/* | |
// @include http://github.com/* | |
// ==/UserScript== | |
(function () { | |
console.log("test"); | |
var vcardLi = document.querySelector('.vcard-details li'); | |
var url = 'http://gist.github.com' + location.pathname; |