Skip to content

Instantly share code, notes, and snippets.

View radinreth's full-sized avatar
👨‍💻
Hello World!

Radin Reth radinreth

👨‍💻
Hello World!
View GitHub Profile
@radinreth
radinreth / springer-free-maths-books.md
Created January 12, 2016 01:18 — forked from bishboria/springer-free-maths-books.md
Springer made a bunch of books available for free, these were the direct links
Install Xcode command line tools (Apple Developer site)
brew uninstall postgresql
brew install postgresql
ARCHFLAGS="-arch x86_64" gem install pg
gem uninstall libv8
brew install v8
gem install therubyracer
gem install libv8 -v '3.16.14.3' -- --with-system-v8
http://stackoverflow.com/questions/24081473/how-to-install-therubyracer-gem-on-10-10-yosemite
screen -S socketName : create screen
ctrl + A D : detach screen
screen -ls : list screen
screen -r socketName : attach to screen
exit : exit screen
fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /run/user/1000/spring (Errno::EACCES)
unset XDG_RUNTIME_DIR
rails c
subl . command not found
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin
```./gradlew assembleRelease | clean | installRelease```
run this to get bundle file for ios
```react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle```
Install apk to phone
```adb install -r file name```
http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read?lq=1
require 'nokogiri'
require 'open-uri'
MARK_FILE = "mark.dat"
def wait_for_threads(threads)
print "Waiting for downloads to finish..."
threads.each { |t| t.join }
puts " ok"
end
#!/usr/bin/env ruby
require 'rubygems'
require 'open-uri'
require 'nokogiri'
require 'net/http'
url = 'http://hewgill.com/~greg/stackoverflow/ebooks/'
root = uri.parse(url)