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 'httparty' | |
def log(target_file, resource_url, package_id) | |
File.open("downloads.log", 'a') do |file| | |
file.puts "#{DateTime.now.to_s} ::: Downloaded #{target_file} from #{resource_url} in #{package_id}" | |
end | |
end | |
Dir.mkdir("data", 0700) unless Dir.exists?("data") |
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>Trigger Happy</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="http://cdn.jsdelivr.net/flat-ui/2.0/css/flat-ui.css" rel="stylesheet"> | |
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'> |
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
(ns boston.core | |
(:require [cljs.core.async :as async :refer [chan <! >! merge timeout filter<]]) | |
(:require-macros [cljs.core.async.macros :as m :refer [go-loop go]])) | |
(enable-console-print!) | |
(def in-channel-one (chan)) | |
(def in-channel-two (chan)) | |
(def in-channel-three (chan)) |
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 '[clj-http.client :as client]) | |
(client/get "http://YOUR_TEAMWORKSITE_HERE.teamworkpm.net" | |
{:basic-auth ["YOUR_API_KEY_HERE" ""] ; looks like they dont use a password | |
:as :json }) |
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
# --- !Ups | |
create table quotes ( | |
id bigint not null auto_increment, | |
quote varchar(max), | |
attributed_to varchar(255), | |
year int(4), | |
primary key (id) | |
); |
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
(ns card-shop.core | |
(:require [liberator.core :refer [resource defresource]] | |
[liberator.dev :refer [wrap-trace]] | |
[ring.middleware.keyword-params :refer [wrap-keyword-params]] | |
[ring.middleware.params :refer [wrap-params]] | |
[ring.adapter.jetty :refer [run-jetty]] | |
[compojure.core :refer [defroutes GET]])) | |
(defrecord Paint [id title code quantity]) |
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>React Workshop</title> | |
<link href="https://rawgit.com/kouphax/static/master/react-workshop/stylesheets/styles.css" rel="stylesheet"> | |
</head> | |
<body> | |
<!-- NOT REQUIRED FOR REACT BUT MAY BE HANDY LATER --> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> |
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
; DATA TYPES | |
(class 1) | |
(class "Hello") | |
(class 1.0) | |
(class \H) | |
(class true) | |
(class nil) | |
(class (fn [] 1)) |
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 | |
function clear { | |
rm *.log-r *.log 2> /dev/null | |
} | |
clear | |
REPOS=$(find . -maxdepth 1 -mindepth 1 -type d) |
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
:map <leader>x :w<CR>:!./%<CR> |