Skip to content

Instantly share code, notes, and snippets.

View joncode's full-sized avatar
🏠
Launching Apps

Jon Anders joncode

🏠
Launching Apps
  • Agent1 / Suma / Squad.fyi / Splice / Lucera / Couchtour.tv / Hedera / Giftlocal / Sarson Funds / Dial / Manifest.ai
  • Philadelphia, PA
View GitHub Profile
@joncode
joncode / gist:4237122
Created December 7, 2012 22:40
getting github branches on your local computer
git remote show origin
git pull
git checkout remotes/origin/branchname
git checkout -b branchname
@joncode
joncode / gist:4191926
Created December 3, 2012 00:54
loading a ruby file in Rails Console
simple as load "test/buy_giver.rb"
this file is in the test folder in my rails app
@joncode
joncode / gist:4138094
Created November 24, 2012 02:25
when adding new views xibs, get NSInvalidUnarchiveOperationException error
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
click on first box of 5 in xib file or view
UNCHECK - use Autolayout
done
@joncode
joncode / gist:4049186
Created November 10, 2012 00:16
xcode archiving system
go to xocde menu
Product > Archive
go to organizer
see the archive ... choose Distribute on the right
- check for ad hoc develepment
@joncode
joncode / gist:3956523
Created October 26, 2012 01:59
CURL commands
test the drinkboard menu route :
sending a POST command with an id only
curl http://drinkboard.herokuapp.com/app/menu.json -d 40
send a POST command with the remember token in the params
curl http://localhost:3000/app/providers.json -d "token=vaRlsrT-JjQRkbAhtN27-w"
example of multiple data route
curl http://example.com/users -d"first_name=Bruce&last_name=Wayne"
@joncode
joncode / gist:3933835
Created October 22, 2012 20:16
adding FacebookSDK to iOS
drag facebook SDK in folder and copy whole thing in
- delete tests if they cause senTesting error
- DO NOT name any files in your project Facebook.h .m
add other link to build target with '-lsqlite3.0' flag
watch this and do it the same
https://www.facebook.com/video/video.php?v=10151424039669838
add SCFacebook and put the git hub function in the app delegate
make social framework and ad support framework and accounts framework 'optional'
@joncode
joncode / gist:2962817
Created June 20, 2012 23:09
jquery-ui gem
group :assets do
gem 'jquery-ui-rails'
end
application.js
//= require jquery.ui.all
application.css
/*
*= require jquery.ui.all
@joncode
joncode / gist:2913650
Created June 12, 2012 00:31
add remote to heroku
sudo gem install heroku
git config -l
if heroku is there
git remote rm heroku
then ..
git remote add heroku [email protected]:becker.git
the app name on heroku is "becker.git"
even tho the git repo is named "joncode:becker_sqlite.com"
@joncode
joncode / gist:2841552
Created May 31, 2012 06:55
git asks for username and password every time on git push - how to stop
git config -l
does remote.origin.url = git @github.com/joncode/filename.git ?
ie ... is the a '/' between github.com and joncode
if so
git config remote.origin.url git@github:joncode/filename.git
should fix it
@joncode
joncode / gist:2840663
Created May 31, 2012 02:57
clone repo into different repo
make new repo on github w/ rails .gitignore
clone new repo to computer
in the terminal in your local repo
- git pull [email protected]:joncode/template1.git
or
- git merge [email protected]:joncode/template1
- git pull [email protected]:joncode/template1.git
bundle install
rake db:migrate