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
http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read?lq=1
```./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```
subl . command not found
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin
fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /run/user/1000/spring (Errno::EACCES)
unset XDG_RUNTIME_DIR
rails c
screen -S socketName : create screen
ctrl + A D : detach screen
screen -ls : list screen
screen -r socketName : attach to screen
exit : exit screen
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
Install Xcode command line tools (Apple Developer site)
brew uninstall postgresql
brew install postgresql
ARCHFLAGS="-arch x86_64" gem install pg
@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
@radinreth
radinreth / readme.md
Created January 11, 2016 08:21 — forked from maxivak/readme.md
Send email to multiple recipients in Rails with ActionMailer

Send email to multiple recipients

Send multiple emails to different recipients.

Mailer class

# app/mailers/notify_mailer.rb

class NotifyMailer < ApplicationMailer
# List of all uploaded videos and playlists on a YouTube Channel
# Note that YouTube API v3 requires a key. Create a browser API key with a referer at https://console.developers.google.com.
#
# Here are the steps using "curl" that matches the Ruby code below:
#
# Get channel information.
# curl --referer "YOUR_REFERER" "https://www.googleapis.com/youtube/v3/channels?part=snippet,contentDetails,statistics,status&maxResults=50&forUsername=YOUR_USERNAME&key=YOUR_KEY"
# Find "Uploads" playlist ID at items => contentDetails => relatedPlaylists => uploads.
# Find Channel ID at items => id.
#