Skip to content

Instantly share code, notes, and snippets.

nativefier --name "GUS" --single-instance \
--internal-urls \
"https?:\/\/(.*gus.content.force.com|aloha\.force\.com|aloha\.my\.salesforce\.com|gus.lightning.force.com|gus.my.salesforce.com)(.*)" \
"https://gus.lightning.force.com/" \
~/Applications/ \
&& rm -rf ~/Applications/GUS.app \
&& mv ~/Applications/GUS-darwin-x64/GUS.app ~/Applications/. \
&& rm -rf ~/Applications/GUS-darwin-x64
@drapergeek
drapergeek / wat.ex
Last active April 14, 2024 00:32
Elixir Keywords vs Maps in Pattern Matchin
defmodule Tester do
def map(%{name: "Jason"} = options) do
IO.puts "HI JASON"
end
def keywords([name: "Jason"] = options) do
IO.puts "EXACTLY JASON"
end
end
@drapergeek
drapergeek / dropdown.html
Created September 2, 2016 15:18
JS Dropdown
<div class="dropdown-wrapper" data-dropdown="wrapper">
<button class="filter-toggle-button" data-dropdown="toggle">
BUTTON HERE
</button>
<div class="dropdown" data-dropdown="content" data-role="model-filter">
CONTENT HERE
</div>
</div>
@drapergeek
drapergeek / circle.yml
Created August 25, 2016 17:22
Common Files for Phoenix App - CircleCI, Setup & Deploy
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
pre:
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
dependencies:
cache_directories:
- ~/.asdf
- ~/.node_modules
- deps
import Ember from 'ember';
function clickOn(app, key, context) {
return awesomeFunction;
}
export default function registerHelper() {
Ember.Test.registerHelper('clickOn', clickOn);
}
@drapergeek
drapergeek / gist:8869962
Created February 7, 2014 19:26
Ember fails to build
Building Ember...
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `./node_modules/.bin/defeatureify /<dev_path>/emberjs/tmp/rake-pipeline-783aad14e8153a10b425382885ed7498fa570413/rake-pipeline-4-tmp-3/ember-runtime.js --config features.json '
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `./node_modules/.bin/defeatureify /<dev_path>/emberjs/tmp/rake-pipeline-783aad14e8153a10b425382885ed7498fa570413/rake-pipeline-4-tmp-3/ember-runtime.prod.js --config features.json '
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `./node_modules/.bin/defeatureify /<dev_path>/emberjs/tmp/rake-pipeline-783aad14e8153a10b425382885ed7498fa570413/rake-pipeline-4-tmp-11/ember-runtime.prod.js --config features.json --stripdebug '
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `./node_modules/.bin/defeatureify /<dev_path>/emberjs/tmp/rake-pipeline-783aad14e8153a10b425382885ed7498fa570413/rake-pipeline-4-tmp-11/ember-runtime.prod.js --config
@drapergeek
drapergeek / gist:4718737
Last active December 12, 2015 04:59
Basic Capybara Setup
  • Add the following to your gem file
group :test do
  gem 'rspec-rails'
  gem 'capybara'
  gem 'launchy'
end
  • Run bundle install