Skip to content

Instantly share code, notes, and snippets.

View abloom's full-sized avatar

Andrew Bloom abloom

  • Turquoise Health
  • Chicago Il
View GitHub Profile
public class Vowels {
public static void main(String [ ] args) {
int pIndex, vIndex, count;
char[] vowels = { 'a', 'e', 'i', 'o', 'u' };
String phrase = "phrase";
count = 0;
for(pIndex = 0; pIndex < phrase.length(); pIndex++) {
for(vIndex = 0; vIndex < 5; vIndex++) {
if (phrase.charAt(pIndex) == vowels[vIndex]) {
347.54s user 34.49s system 81% cpu 7:47.55 total
➜ local brew doctor
Error: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libsecurity_agent_client.a /usr/local/lib/libsecurity_agent_server.a
Error: X11 not installed.
You don't have X11 installed as part of your OS X installation.
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Javascript 197 4200 2387 17065
Ruby 331 2392 1713 10951
CSS 13 1614 268 10367
HTML 21 1195 348 8720
SASS 45 362 10 3447
HAML 74 338 0 1660
YAML 16 206 187 1379
App.Store = Ember.Store.extend
reload: (obj) ->
@adapter.find(this, obj.constructor, obj.get('id'))
~/Code/ignition/vendor/assets/javascripts/jquery-grid (slickgrid-test ✘)✹ ᐅ wach -o "src/*" make all
- Will run: make all
- when files matching {src/*} added or updated
/usr/local/lib/node_modules/wach/lib/wach-cli.js:34
changedPath = path.relative(cwd, changedPath);
^
TypeError: Object #<Object> has no method 'relative'
at /usr/local/lib/node_modules/wach/lib/wach-cli.js:34:26
at Socket.<anonymous> (/usr/local/lib/node_modules/wach/lib/wach.js:13:23)
typedef struct {
String name;
void (*command)();
} Message;
void bellOn() {
digitalWrite(RING, HIGH);
}
void bellOff() {
arr = [1, 2, 3, 4, 5, 6, 7, 8]
break for num in arr when num % 2 == 0
alert(num)
@abloom
abloom / incident.rb
Created October 2, 2011 18:40
Mongo DB Geo Spacial Map Reduce Error
class Incident
include MongoMapper::Document
key :case_number, Integer
key :date, Date
key :charge, String
key :description, String
key :arrest, Boolean
key :domestic, Boolean
key :beat, Integer
abloom:~/Sites/centro/pickle_factory (sync-refactor) $ ack --thppt
_ /|
\'o.O'
=(___)=
U ack --thppt!