As of December 9, 2013 1:20pm. 61 total, 6 unapproved
- 54 MIT
- 2 other
- 2 ruby
- 1 Apache 2.0
- 1 BSD
| defmodule CustomCredo.DatedTodo do | |
| use Credo.Check, | |
| id: "EX2005", | |
| param_defaults: [include_doc: true], | |
| explanations: [ | |
| check: """ | |
| TODO comments are used to remind yourself of source code related things. | |
| Example: |
| #!/bin/bash | |
| MSG=$(shuf -n 1 facts.txt) | |
| TIME=$(date +"%I:%M %p") | |
| FROM="+1AAABBBCCCC" | |
| TO="+1XXXYYYZZZZ" | |
| twilio api:core:calls:create --method GET --to $TO --from $FROM --twiml "<Response><Pause length='1'/><Say voice='alice'>This is your cat fact for $TIME</Say><Pause length='1'/><Say voice='alice'>$MSG</Say><Play>https://orangefreesounds.com/wp-content/uploads/2022/05/Cute-cat-meow-sound.mp3</Play></Response>" | |
| $TRACE ||= ENV['TRACE'] | |
| $PROFILE ||= ENV['PROFILE'] | |
| require 'ruby-prof' if $PROFILE | |
| class IVM | |
| attr_accessor :memory, :inputs, :ops, :halted | |
| attr_accessor :name, :external_ref | |
| attr_accessor :input_proc, :output_proc, :has_signal, :halt_proc |
| ### Keybase proof | |
| I hereby claim: | |
| * I am markolson on github. | |
| * I am markolson (https://keybase.io/markolson) on keybase. | |
| * I have a public key ASDuHk-mQyCK1gVkBivuCiA5e_PUOl19CLLoYp0t1Ed0KQo | |
| To claim this, I am signing this object: |
| import Enum | |
| t = 'rps' | |
| c = fn(s)-> into(s,HashSet.new) end | |
| s = (IO.gets'') |> String.strip |> String.to_char_list | |
| case count(Set.difference(c.(s),c.(t))) do | |
| 0 when length(s)==3-> -> | |
| e = for x<-s, do: {x,random(t)} | |
| x = sum(map(e,fn(x) -> case x do {x,x}->0;{?r,?s}->1;{?p,?r}->1;{?s,?p}->1;_->-1 end end)) | |
| IO.puts map(e,&(elem(&1,1))) | |
| IO.puts(x<0&&"Lose"||x>0&&"Win"||"Draw") |
| -- convert -coalesce image.gif ~/Documents/cin/img%02d.png | |
| set i to 0 | |
| set wallpaper_folder to (path to home folder as string) & "Documents:cin" as alias | |
| tell application "Finder" | |
| set fileList to (every file of folder wallpaper_folder) as alias list | |
| end tell | |
| tell application "System Events" | |
| repeat |
| From 23c9be81e4f00040018deec19c73b9484a5fa50e Mon Sep 17 00:00:00 2001 | |
| From: Mark Olson <[email protected]> | |
| Date: Sun, 2 Nov 2014 16:11:39 -0500 | |
| Subject: [PATCH] If PIL is available, embed the metrics used to generate the | |
| graph in the PNG. For reasons. | |
| --- | |
| webapp/graphite/render/views.py | 26 +++++++++++++++++++++++--- | |
| 1 file changed, 23 insertions(+), 3 deletions(-) |
| # I'm sure this can all be replaced with a one liner, buried deep in chef somewhere. | |
| # Actually, probably Chef::Client. | |
| require 'json' | |
| require 'chef' | |
| require 'chef/application/solo' | |
| require 'chef/knife/deps' | |
| def setup_node(environment, name, node_config_path) | |
| Chef::Config[:config_file] = ".chef/knife.rb" |
| #!/usr/local/bin/python | |
| # CopyPaste/print programming & debugging at it's finest. | |
| import os, re, sys, subprocess, time | |
| import zipfile, tempfile | |
| import sqlite3 | |
| def main(): | |
| print sys.argv |