Skip to content

Instantly share code, notes, and snippets.

@ymendel
ymendel / README.md
Created August 24, 2023 17:00
Little toy git-bisect example

What's this?

This is a very contrived way to show off what git-bisect is good for.

How does it work?

This will create a file called test_file and then do a bunch of commits with one "bad" one randomly inserted somewhere in the middle. And the "bad" commit involves a deletion, so you can't find it using a simple git blame on the file.

Example

@ymendel
ymendel / keybase.md
Created February 25, 2016 21:33
keybase proof

Keybase proof

I hereby claim:

  • I am ymendel on github.
  • I am ymendel (https://keybase.io/ymendel) on keybase.
  • I have a public key ASB-P9a449aOeFka47Ay4Q-NGx-7PBJLfxFjubuh_EaDSQo

To claim this, I am signing this object:

@ymendel
ymendel / data-day.csv
Last active August 29, 2015 14:09
testing d3 candelstick with bl.ocks
Date Open High Low Close
22-Sep-14 243 248 242 242
23-Sep-14 242 243 239 239
24-Sep-14 239 243 238 241
25-Sep-14 241 243 240 242
26-Sep-14 242 246 240 245
27-Sep-14 245 245 242 242
28-Sep-14 242 243 242 243
29-Sep-14 243 243 240 242
30-Sep-14 242 243 239 242
@ymendel
ymendel / fishtank.html
Last active December 15, 2015 17:49
marquee fishtank — as seen at http://citizenx.cx/fishtank/
<html>
<head>
<title>Marquee Fishtank</title>
<style>
#fishtank {
width: 350px;
background-color: aqua;
}
#fish1 { color: red }
#fish2 { color: orange }
Argyle:~/dev/scratch/flogtest2 yossef$ rake gems:install
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
Please install RDoc 2.4.2+ to generate documentation.
gem install paperclip --version ">= 0"
Successfully installed multi_json-1.0.3
Successfully installed activesupport-3.1.1
Successfully installed cocaine-0.2.0
Successfully installed paperclip-2.4.5
Successfully installed i18n-0.6.0
Argyle:~ yossef$ rvm use 1.9.2@daikanbana
Using /Users/yossef/.rvm/gems/ruby-1.9.2-p180 with gemset daikanbana
Argyle:~ yossef$ gem list | wc -l
83
Argyle:~ yossef$ gem list
*** LOCAL GEMS ***
actionmailer (3.1.0)
actionpack (3.1.0)
@ymendel
ymendel / gist:897611
Created April 1, 2011 01:50
Are you ready to rock?
flf2a$ 11 11 20 0 2
rockhands.flf Version 1
by: Yossef Mendelssohn [email protected]
@
@
@
@
@
@
@
.-. .-.
|U|_.-.-..-.-._|U|
| | | | || | | | |
| ' || ` |
| || |
| /\ |
\ | | /
| | | |
| | | |
@ymendel
ymendel / gist:850590
Created March 2, 2011 07:19
stubbing ``
>> class Blah
>> def bang
>> `ls`
>> end
>> end
=> nil
>> Blah.new.bang
=> "Applications\nDatabases\nDesktop\nDocuments\nDropbox\nLibrary\nMovies\nMusic\nPictures\nPublic\nSites\nbin\ndev\ndownloads\nmbox\nnotes.txt\nproblems.pl\nscripts\nstuff\ntmp\n"
>> x = Blah.new
=> #<Blah:0x1036500>
#!/usr/bin/env ruby -pi.bak
# bacon before takes no argument
$_.sub!(/before\s*\(?\s*:each\s*\)?\s*/, 'before ')
# same with after
# No magic annoying spaces after 'should'.
# Matchers are methods on the Should object
$_.sub!(/\.should\s*/, '.should.')
# fix `should_not` -> `should._not`