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
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
bergerjac / Doc.md
Last active Feb 14, 2017 — forked from cyio/evernote-link.user.js
Evernote Web in-app note link
View Doc.md
-- example --
web: https://www.evernote.com/shard/s12/nl/u2u2u2u2/44444444-3333-2222-1111-000000000/
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
bergerjac / Cordova Plugins.md
Last active Nov 3, 2016
List of Cordova Plugins Summary
View Cordova Plugins.md
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
[cordova-plugin-dialogs](https://github.com/apache/cordova-plugi
@bergerjac
bergerjac / startup.sh
Created May 18, 2015
linux os open port
View startup.sh
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
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
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
Rails.backtrace_cleaner.remove_silencers!
@bergerjac
bergerjac / Gemfile
Created Mar 31, 2015
capybara-rspec-gherkin setup
View Gemfile
group :test do
gem 'rspec-gherkin'
end
@bergerjac
bergerjac / Gemfile
Created Mar 31, 2015
capybara-screenshot
View Gemfile
group :test do
gem 'capybara-screenshot'
end
You can’t perform that action at this time.