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
defmodule TheShelf.Mixfile do | |
use Mix.Project | |
def project do | |
[ app: :the_shelf, | |
version: "0.0.1", | |
elixir: "~> 1.0.0-rc1", | |
elixirc_paths: ["lib", "web", "test"], | |
deps: deps(Mix.env) ] | |
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 "frank" | |
require "ecr" | |
require "ecr/macros" | |
get "/" do |context| | |
context.response.content_type = "text/html" | |
ECR.process_file("views/index.ecr") | |
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
var connection = new WebSocket('ws://127.0.0.1:3000') | |
connection.send("Hello World from WS") |
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
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'ubuntu/trusty32'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'ubuntu/trusty32' is up to date... | |
==> default: Setting the name of the VM: rails-dev-box_default_1417017607283_37929 | |
==> default: Clearing any previously set forwarded ports... | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... |
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
~/Projects/my-dotfiles/vim/ftplugin/markdown.vim | |
110: /usr/local/Cellar/vim/7.4.253/share/vim/vim74/ftplugin/markdown.vim | |
111: ~/Projects/my-dotfiles/vim/bundle/vim-snipmate/ftplugin/html_snip_helper.vim | |
112: /usr/local/Cellar/vim/7.4.253/share/vim/vim74/ftplugin/html.vim | |
113: ~/Projects/my-dotfiles/vim/bundle/syntastic/autoload/syntastic/log.vim | |
114: ~/Projects/my-dotfiles/vim/bundle/ctrlp.vim/autoload/ctrlp/utils.vim | |
115: ~/Projects/my-dotfiles/vim/ftplugin/html.vim |
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
(ns layouts.application | |
(:require [hiccup.page :as h] | |
[hourglass.helpers :as misc])) | |
(defn layout [page] | |
(h/html5 | |
misc/pretty-head | |
(misc/pretty-body page))) | |
(defn home [] |
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 track_event_on_mixpanel | |
Resque.enqueue MixpanelTrackEventJob, "Event", properties, env | |
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
class UserMailer { | |
private $user; | |
public function __construct($user) | |
{ | |
$this->user = $user; | |
} | |
public function activation_deliver() | |
{ |
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
<?php | |
class UserMailer { | |
private $user = null; | |
public function __construct(user) | |
{ | |
$this->$user = user; | |
} | |
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> | |
void print_ages(int age) { | |
int i; | |
int number_of_trips = 0; | |
for (i = 0; i <= age; i++) | |
{ | |
if(i % 8 == 0 && i % 5 != 0) { | |
printf("%i\n", i); | |
number_of_trips++; |