Skip to content

Instantly share code, notes, and snippets.

View fakefarm's full-sized avatar
๐Ÿฝ
๐Ÿฆ๐ŸŽ๐Ÿธ๐Ÿง„๐Ÿ”๐Ÿ๐Ÿน๐Ÿ‘๐Ÿฎ ๐Ÿด๐Ÿฆ†๐Ÿฅฆ๐Ÿ™๐ŸณF๐Ÿฆž๐Ÿง…๐Ÿถ ๐Ÿฆง๐Ÿ‘พA๐Ÿฆˆ๐Ÿ‹๐Ÿ‰K๐ŸŒฝ ๐Ÿฃ๐ŸŽ๐Ÿฆš๐Ÿฆฉ๐Ÿฆ”๐Ÿฟ๐Ÿฆจ๐Ÿ‰๐Ÿฅ• ๐Ÿฟ๐Ÿพ๐Ÿ’๐ŸŠE๐Ÿˆ๐Ÿป๐Ÿฅฅ๐Ÿฑ ๐Ÿผ๐Ÿฅ‘๐Ÿท๐Ÿ“๐ŸŒ๐Ÿ–F๐Ÿฆƒ ๐Ÿ‘๐Ÿšœ๐Ÿ‹๐Ÿ‚A๐Ÿ๐ŸŒพ๐Ÿค–๐Ÿ€๐Ÿฆ” R๐Ÿฆœ๐Ÿฆ๐Ÿˆ๐Ÿฆ“๐Ÿ ๐Ÿฆ‘๐Ÿฆ‚M๐Ÿœ

Dave Woodall fakefarm

๐Ÿฝ
๐Ÿฆ๐ŸŽ๐Ÿธ๐Ÿง„๐Ÿ”๐Ÿ๐Ÿน๐Ÿ‘๐Ÿฎ ๐Ÿด๐Ÿฆ†๐Ÿฅฆ๐Ÿ™๐ŸณF๐Ÿฆž๐Ÿง…๐Ÿถ ๐Ÿฆง๐Ÿ‘พA๐Ÿฆˆ๐Ÿ‹๐Ÿ‰K๐ŸŒฝ ๐Ÿฃ๐ŸŽ๐Ÿฆš๐Ÿฆฉ๐Ÿฆ”๐Ÿฟ๐Ÿฆจ๐Ÿ‰๐Ÿฅ• ๐Ÿฟ๐Ÿพ๐Ÿ’๐ŸŠE๐Ÿˆ๐Ÿป๐Ÿฅฅ๐Ÿฑ ๐Ÿผ๐Ÿฅ‘๐Ÿท๐Ÿ“๐ŸŒ๐Ÿ–F๐Ÿฆƒ ๐Ÿ‘๐Ÿšœ๐Ÿ‹๐Ÿ‚A๐Ÿ๐ŸŒพ๐Ÿค–๐Ÿ€๐Ÿฆ” R๐Ÿฆœ๐Ÿฆ๐Ÿˆ๐Ÿฆ“๐Ÿ ๐Ÿฆ‘๐Ÿฆ‚M๐Ÿœ
View GitHub Profile
@fakefarm
fakefarm / reload.html
Created October 22, 2014 21:30
Add this to a file you want to reload during development.
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
@fakefarm
fakefarm / bash.sh
Created November 26, 2014 00:31
bash things
# make a command and come back to same directory
(cd foo/; git pull origin master; rm -rf .bundle; bundle)
# iterate over items and do something with them.
for i in payments accounts deals promotions
do
cd ~/Code/$i
rm -rf .bundle
@fakefarm
fakefarm / tweak.css
Created January 30, 2015 00:27
About text
.superbox-inner {
outline: 1px solid #404041;
border: none;
float: left;
display: block;
padding: 93px 97px;
background: rgba(255, 255, 255,0.9);
position: fixed;
top: 10px;
left: 0px;
@fakefarm
fakefarm / window.js
Created January 7, 2016 23:05
Want to know what happens when you click? Inspect the event!
$('.deal-details a').on('click', function(e) { window.testing = e });`
@fakefarm
fakefarm / linkedin.js
Last active January 15, 2019 22:06
Use skills to network skills.
// endorse page
function endorse_people() {
$('.endorse-skills').click();
window.setInterval(endorse, 1200);
function endorse() {
$('#endorsements-connections')
.find('.endorse-action')
@fakefarm
fakefarm / minty_fresh.css
Last active March 5, 2016 20:08
fakefarm.com/minty-fresh
// stylebot chrome plugin
// https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en
// unsorted list of everything I don't want to display.
#goal,
#planning,
#txnEdit .checkboxes,
.sponsored,
@fakefarm
fakefarm / short_version.md
Last active May 13, 2016 15:43
FormKeep vs. Wufoo

FormKeep vs. Wufoo

FormKeep just released a new pricing structure. So I checked it out and then hopped over to [wufoo](http://www.wufoo.com/pricing/1/ to compare pricing) to compare.

Currently, the reasons to paying twice as much include;

  • FormKeep lets you retain 100% control of your markup and styles.

  • You just edit your form's action attribute to point to us. That's the whole integration.

@fakefarm
fakefarm / small_business_trends.md
Created May 13, 2016 15:45
2016 Small Business Trends
@fakefarm
fakefarm / i_am_puts_debugger_1.md
Last active May 31, 2016 18:51
I know where I am but not how I got here

I know where I am but not how I got here

By @tenderlove. Full post I am puts debugger

Sometimes Iโ€™ll be debugging an issue and know where the problem is, but not how I got there. For those times Iโ€™ll just do puts caller to get the callstack.

For example I have this code:

LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? }

@fakefarm
fakefarm / i_am_puts_debugger_2.md
Last active May 31, 2016 18:51
Iโ€™m calling a method, but I donโ€™t know where it goes

Iโ€™m calling a method, but I donโ€™t know where it goes

By @tenderlove. Full post I am puts debugger

In the case where Iโ€™m calling a method, but I donโ€™t know where that method is implemented, Iโ€™ll use the method method along with the source_location method. For example, I have an action in a controller that calls render and I want to find that method:

def show
  render params[:id]
end