Skip to content

Instantly share code, notes, and snippets.

View joncode's full-sized avatar
🏠
Working from home

Jon Gutwillig joncode

🏠
Working from home
View GitHub Profile
@joncode
joncode / Part 2.markdown
Last active September 29, 2015 10:37
short discussion of the problems and solutions of group ensemble improvised music

Success with Improvised Ensemble Music

a guideline to the possible stumbling blocks found with group ensemble improvisation

problems

  1. coordination of intention
  2. non-verbal communication only
  3. relying on connections
  4. patience
@joncode
joncode / gist:2487623
Created April 25, 2012 07:06
clone github in new laptop
simple version ...
go to folder that will house your root folder
git clone git@github.com:joncode/becker_sqlite.git
bundle install
rake db:migrate
rake db:seed
... this runs git init for you
... you could also clone from mac, but I am getting an error in my local mac OSX
@joncode
joncode / firefox about:config swipe
Created April 25, 2012 08:32
two finger swipe in Firefox
type into url of firefox ...
about:config
look in document for ...
mousewheel.horizscroll.withnokey.sysnumlines
true is OFF , false if ON
doesn't appear to be a very stable setting, i.e. when scrolling it swipes
@joncode
joncode / gist:2496412
Created April 26, 2012 05:59
delete file from staging area in GIT
git checkout -- app/assets/javascripts/themes.js.coffee
if you have a file thats been deleted from the repo and sitting in the staging area and you'd like to delete it
if its called "app/assets/javascripts/themes.js.coffee"
use the above command
not quite sure what is the directory , index, staging area etc, need exact definitions
@joncode
joncode / gist:2496424
Created April 26, 2012 06:01
radio button won't checked=checked
the problem was solved by nesting the
<input name="option.<%= feature.name %>" type="radio" checked="checked" value="<%= option_value %>">
in a form.
<form>
<input name="option.<%= feature.name %>" type="radio" checked="checked" value="<%= option_value %>">
</form>
Altho in one controller it works NOT in a form and also the checkboxes were checked=checked without the form.
@joncode
joncode / gist:2496562
Created April 26, 2012 06:16
move local branch to GitHub
create new repository on Github first .... either use 'Push to Github' on github local app , or create new repo online
easy way ...
go to GitHub GIU and click 'publish' on branch
you can also delete branch from cloud by unclicking publish
command line way ...
git remote add origin git@github.com:joncode/becker_sqlite.git new_cart
@joncode
joncode / gist:2496746
Created April 26, 2012 06:36
merging their branch to your branch?
How do I get robbie's 'store' branch and merge it into my 'cart' branch ?
from terminal in becker_sqlite ...
git clone https://github.com/robertSahm/becker_sqlite.git store
# puts his branch into my local repo - DID NOT WORK
from terminal in becker_sqlite ...
git pull https://github.com/robertSahm/becker_sqlite.git store
# WORKED !
git pull - will fetch the repo becker_sqlite.git and grab the 'store' branch
- will merge that into whatever branch you are in in ur local repo
@joncode
joncode / gist:2501101
Created April 26, 2012 17:23
Add CSS id to link_tag
using the old argument style of controller: "#", action: "#" , must put them in a hash to avoid id confusion
<%= link_to 'STORE',{ controller: 'store', action: 'new'}, :id => "storeClick" %>
@joncode
joncode / gist:2503118
Created April 26, 2012 20:54
Dead Anchor links in HTML & Rails
using a <a href> tag ...
<a href="#" id="chooseLink">-tagName</a>
using link_to_function (when calling a javascript function instead of link) ...
<%= link_to_function "tagName", "javascript function", id: "chooseLink %>
using link_to ( changing a link_to to a dead link and then using jQuery to add functionality to id ...
@joncode
joncode / gist:2503424
Created April 26, 2012 21:43
custom body type url
Thumb H/Lap Steel 1_thumbh.jpg
add to Image_url in body type "custom"
webphotos/darkhorse.png
add to dark horse product image_url