Skip to content

Instantly share code, notes, and snippets.

View joelip's full-sized avatar

Joe Lipper joelip

View GitHub Profile
@cemre
cemre / alerter.rb
Last active December 23, 2015 18:59
Get a call when Apple has iPhones in stock. https://medium.com/p/7f921ea94e8f
require 'twilio-ruby'
require 'httparty'
require 'json'
class Alerter
def check
# set up a client to talk to the Twilio REST API
account_sid = 'xxxxxx'
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@nnarhinen
nnarhinen / Gruntfile.js
Last active February 11, 2020 09:39
Support html5 pushState (or angular.js html5mode) in a yeoman (grunt-contrib-connect) application.
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
//MODIFIED: add require for connect-modewrite
var modRewrite = require('connect-modrewrite');
grunt.initConfig({
@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active June 9, 2025 22:16
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

@ardcore
ardcore / atom-events
Last active October 13, 2021 20:35
atom.io events
application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
@dhoelzgen
dhoelzgen / base_controller.rb
Last active October 7, 2021 16:19
CORS in Rails 4 APIs
class API::V1::BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'
@elliottkember
elliottkember / layerbrowser.coffee
Last active December 14, 2021 12:49
Layer browser for imported Sketch / PSD files in Framer
class LayerBrowser
constructor: (options) ->
@objects = []
@restore = options.restore
@_setup()
@add options.import if options.import
add: (object) ->
@objects.push object
Candidates for next platforms after PCs, phones, and tablets:
Virtual reality
Internet of things
Wearable computers
Cryptocurrencies / blockchain
Self-driving cars
Drones
Brain-computer interfaces
3d printing
Augmented reality
@msfeldstein
msfeldstein / gist:7adea36e5662a6a9ea34
Last active August 23, 2017 23:18
Just a couple guys in a view
class CompoundLayer extends Layer
@define "selectedTab",
get: -> @_selectedTab || 0
set: (p) ->
@_selectedTab = p
for tab, i in @tabs
tab.opacity = 1 - Math.abs(i - p)
constructor: (opts) ->
@eliotsykes
eliotsykes / Gemfile
Last active August 28, 2019 02:56
JavaScript testing in Rails 4.x with RSpec, Capybara, PhantomJS, Poltergeist
# Add poltergeist gem to Gemfile, in :test group,
# then run `bundle` to install
group :test do
...
gem 'poltergeist'
...
end