This file contains hidden or 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
require 'bundler/inline' | |
require 'json' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'dry-initializer' | |
gem 'dry-schema' | |
end |
This file contains hidden or 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
[ | |
{ | |
"email": "[email protected]", | |
"timestamp": 1513299569, | |
"smtp-id": "<14c5d75ce93.dfd.64b469@ismtpd-555>", | |
"event": "processed", | |
"category": "cat facts", | |
"sg_event_id": "sg_event_id", | |
"sg_message_id": "sg_message_id" | |
}, |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# We revoke the OAuth token by sending an HTTP POST to salesforce.com/services/oauth2/revoke | |
# Usage | |
# ruby revoke.rb myOauthtoken | |
# | |
# https://help.salesforce.com/articleView?id=remoteaccess_revoke_token.htm&type=0 | |
# | |
# POST /revoke HTTP/1.1 | |
# Host: https://test.salesforce.com/services/oauth2/revoke |
This file contains hidden or 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
jekyll: bundle exec jekyll s | |
webpack: webpack -w |
This file contains hidden or 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
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}"> | |
{% asset bundle %} | |
</head> |
This file contains hidden or 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
{ | |
"name": "name", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"devDependencies": { | |
"@babel/core": "^7.9.0", | |
"@babel/preset-env": "^7.9.5", | |
"babel-core": "^6.26.3", | |
"babel-loader": "^8.1.0", |
This file contains hidden or 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
var path = require("path"); | |
module.exports = { | |
entry: "./src/index.js", | |
output: { | |
path: path.join(__dirname,"./assets/js/"), | |
filename: "bundle.js" | |
}, | |
module: { | |
rules: [ |
This file contains hidden or 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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'graphql' | |
gem 'rack' | |
gem 'webrick' | |
gem 'mail' | |
end | |
require 'json' |
This file contains hidden or 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/sh | |
# | |
# A pre-commit hook for Ruby projects. | |
# | |
# == Installation | |
# | |
# From within a Ruby project directory in your terminal: | |
# | |
# curl https://gist.github.com/scottserok/0838cdda3f07a6eb30b44ee475b1e57c/raw/fe00beb4a69c529c6391def23a4dc61e2711c2cb/ruby-pre-commit >> .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit |
NewerOlder