Skip to content

Instantly share code, notes, and snippets.

Jake Berger bergerjac

Block or report user

Report or block bergerjac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bergerjac / BasicExcelToGmail.vba
Created Jul 27, 2018
How to Send Email from Excel using Gmail
View BasicExcelToGmail.vba
Option Explicit
' 4 variables below require configuration.
' Once you get this working, refactor, etc.
Sub CDO_Mail_Small_Text_2()
Dim user As String
Dim pass As String
Dim port As Integer
Dim receiverEmail As String
Dim fromEmail As String
bergerjac /
Last active Feb 14, 2017 — forked from cyio/evernote-link.user.js
Evernote Web in-app note link
-- example --
app: evernote:///view/u2u2u2u2/s12/44444444-3333-2222-1111-000000000/44444444-3333-2222-1111-000000000/
-- format --
web: https://[service]/shard/[shardId]/nl/[userId]/[noteGuid]/
app: evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/

-- spaced --
bergerjac / Cordova
Last active Nov 3, 2016
List of Cordova Plugins Summary
View Cordova
Plugin Permission
cordova-plugin-battery-status hook onto battery change events
cordova-plugin-camera take pictures and read from the images library
cordova-plugin-media-capture audio, image, and video capture
cordova-plugin-console make console.log() more useful
cordova-plugin-contacts access device contacts
cordova-plugin-device info about the device's hardware and software
cordova-plugin-device-motion access the motion sensor accelerometer to detect changes in movement relative to the current device orientation
bergerjac /
Created May 18, 2015
linux os open port
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
View shell
# reset DB
$ rake db:drop db:create db:migrate
# start server, suppressing most SQL log messages
$ rails s | grep -v -E '(SELECT|BEGIN|COMMIT|Load|FROM|INSERT)'
# heroku DB provision
$ heroku config --app wundertest8 # show config
$ heroku addons:add heroku-postgresql:hobby-dev --app app
$ heroku pg:promote HEROKU_POSTGRESQL_COBALT_URL --app app
bergerjac / _form.html.erb
Created Apr 7, 2015
rails async javascript
View _form.html.erb
# rendered in new.js.erb
<%= simple_form_for @task, remote: true do |f| %>
<%= f.input :description %>
<%= f.input :deadline %>
<%= f.button :submit %>
<% end %>
bergerjac / assets.rb
Created Mar 31, 2015
active admin assets
View assets.rb
# nano config/initializers/assets.rb
Rails.application.config.assets.precompile += %w(active_admin/*.gif active_admin/*.png)
View backtrace_silencers.rb
# config/initializers/backtrace_silencers.rb
bergerjac / Gemfile
Created Mar 31, 2015
capybara-rspec-gherkin setup
View Gemfile
group :test do
gem 'rspec-gherkin'
bergerjac / Gemfile
Created Mar 31, 2015
View Gemfile
group :test do
gem 'capybara-screenshot'
You can’t perform that action at this time.