- GitHub Staff
- https://justinherrick.com/
- @jah2488
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 problem1.core) | |
(defn- real-numbers-below [x] (range 1 x)) | |
(defn- multiple-of [x num] (zero? (mod x num)) | |
(defn- multiple-of-three [x] (multiple-of x 3)) | |
(defn- multiple-of-five [x] (multiple-of x 5)) | |
(defn multiple-of-three-or-five [x] | |
(or (multiple-of-three x) | |
(multiple-of-five x))) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<project> | |
<!-- <meta /> | |
Use meta nodes to set metadata for your application. The description is ignored | |
on most targets, but is useful for packaging like Chrome Apps or Opera Widgets. | |
For compatibility with Android and webOS, the package name must include at least |
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
module HStoreProperties | |
extend self | |
def boolean_h_store_fields_for(property_names) | |
property_names.each do |key| | |
attr_accessible key | |
scope "has_#{key}", lambda { |value| where('properties @> (? => ?)', key, value) } | |
define_method(key) do | |
properties && properties[key].to_bool | |
end |
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
#!/usr/bin/env python | |
#=========================================================================================================================================== | |
# ---- Productivity Calculator for Erepublik Beta and V1 ---- | |
## Created by me | |
# | |
# Beta 0.3.5 -- October 25th 2008 | |
# | |
##Notes | |
# | |
## Fatal Occurs during Windows EXE. Something wrong with the SHELVE Module |
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/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
set -e | |
cd `brew --prefix` | |
git ls-files -z | pbcopy | |
sudo rm -rf Cellar | |
bin/brew prune |