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
var gulp = require('gulp'); | |
// Plugins | |
var karma = require('gulp-karma'); | |
// Paths | |
var basePath = './public/assets/'; | |
var paths = { | |
spec: basePath + 'spec/' | |
}; |
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 'amazon/ecs' | |
module Amazon | |
class Ecs | |
def self.cart_similarities(asin) | |
opts = { | |
service: 'AWSECommerceService', | |
operation: 'CartCreate', | |
response_group: 'CartSimilarities' | |
} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bitcoin Payroll</title> | |
<script src="/assets/js/libs/modernizr.js"></script> | |
<link rel="stylesheet" href="/assets/css/bootstrap.css" /> | |
<link rel="stylesheet" href="/assets/css/flat-ui.css" /> | |
<link rel="stylesheet" href="/assets/css/app.css" /> | |
</head> |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
" Plugins here |
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
// By assigning next to a variable we can swap out the hello() function in testing with a custom | |
// implementation | |
var h = hello | |
func main() { | |
fmt.Println(n()) | |
} | |
func hello() string { |
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
# spec/support/click.rb | |
module Capybara | |
module Node | |
class Element < Base | |
# Override the default implementation of click so that whenever we click | |
# on something, we also wait for any ajax requests to finish. | |
def click | |
synchronize { base.click } |
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
package models | |
import ( | |
"github.com/jmoiron/sqlx" | |
"github.com/tonyhb/govalidate" | |
) | |
type Page struct { | |
Id int64 | |
Name string |
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
/** | |
* Set the routes. Each route must have a minimum of a name, a URI and a set of | |
* defaults for the URI. | |
*/ | |
Route::set('api', '(<action>(/<id>))') | |
->defaults(array( | |
'subdomain' => 'api', | |
'controller' => 'api', | |
'action' => 'subdomain', | |
)); |
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
// API | |
Route::set('api', '(<action>(/<subaction>))') | |
->defaults(array( | |
'subdomain' => 'api', // api.domain.com | |
'controller' => 'api', | |
'action' => 'index', | |
)); | |
// Load the website | |
Route::set('welcome', '(<action>(/<subaction>))') |
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/bash | |
if [[ $1 == '' ]]; then | |
echo -e "Which folder do you want to initialise the kohana project in?" | |
read -a dir | |
dir=${dir[@]} | |
else | |
dir=$@ | |
fi |
OlderNewer