This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre-commit: | |
parallel: true | |
commands: | |
eslint: | |
glob: "*.{js}" | |
run: yarn prettier --write {staged_files} && yarn eslint {staged_files} && git add {staged_files} | |
css: | |
glob: "*.{css}" | |
run: yarn prettier --write {staged_files} && git add {staged_files} | |
rubocop: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BRANCH_CHANGE=$3 | |
[[ $BRANCH_CHANGE -eq 0 ]] && exit | |
PREV_HEAD=$1 | |
CURR_HEAD=$2 | |
[ $PREV_HEAD == $CURR_HEAD ] && exit | |
# Don't run bundler if there were no changes in gems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAILCHIMP_API_KEY="...-us19" | |
MAILCHIMP_LIST_ID="..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
const axios = require('axios'); | |
require('dotenv').config(); | |
exports.handler = function(event, context, callback) { | |
const password = process.env.MAILCHIMP_API_KEY; | |
console.log(password); | |
if (!password) { | |
console.error('No MailChimp API Key include in environment variables'); | |
process.exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am skatkov on github. | |
* I am skatkov (https://keybase.io/skatkov) on keybase. | |
* I have a public key ASDWCFGd352PjfJK8TGdTs4v1UJIgKEW8mOc8jJwECTOBQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: Be sure to set the API key further down in the code! | |
require "net/http" | |
require "uri" | |
require "json" | |
class WIP | |
def initialize(api_key:) | |
@api_key = api_key | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
def auto_clear | |
begin | |
result = yield self | |
result.equal?(self) ? nil : result # avoid leaking | |
ensure | |
clear | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#file: app/controllers/tsheets/users_controller.rb | |
module Tsheets | |
class UsersController < ApplicationController | |
def update | |
# does something important here | |
render json: 'test: test' | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: https://rubygems.org/ | |
specs: | |
enumerable-lazy (0.0.2) | |
ffi (1.9.18) | |
haml (5.0.3) | |
temple (>= 0.8.0) | |
tilt | |
i18n (0.8.6) | |
mail (2.6.6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.4' | |
gem 'faker' | |
gem 'watir' | |
gem 'selenium-webdriver' | |
gem 'pry' |