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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
# gem "rails" | |
gem "faraday" |
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
# gem "rails" | |
gem "pry" | |
gem "nokogiri" |
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
tm () { | |
terminal-notifier -title 'Task completed' -message 'All done, sir!' | say Task completed | |
} |
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
javascript:(function(){ var title = document.querySelector('.js-card-detail-title-input').value; var link = location.href.match(/https\:\/\/trello\.com\/c\/(\d|[A-z]){6,10}\//)[0]; var text = `[${title}](${link})` ; var b=document.createElement("textarea"), c=document.getSelection(); b.textContent=text, document.body.appendChild(b), c.removeAllRanges(), b.select(), document.execCommand("copy"), c.removeAllRanges(), document.body.removeChild(b); }()); |
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
class Tree | |
attr_accessor :root | |
def initialize(root) | |
@root = root | |
end | |
def insert(parent, left, right) | |
parent.left = left | |
parent.right = right |
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
const obj = (() => { | |
const privateName = Symbol('privateName') | |
return { | |
[privateName]() { | |
return 'Foo' | |
}, | |
publicName() { | |
return `${this[privateName]()} Bar` | |
} | |
} |
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 "slack" | |
require 'open-uri' | |
YOUR_SLACK_APP_OAUTH_TOKEN = ENV['YOUR_SLACK_APP_OAUTH_TOKEN'] | |
Slack.configure do |config| | |
config.token = YOUR_SLACK_APP_OAUTH_TOKEN | |
end | |
members = Slack.users_list["members"].select { |m| !m["deleted"] } |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
</head> | |
<body> | |
<div class="switch-container"> | |
<input type="checkbox" id="switch"> | |
<label class="switch-area" for="switch"> | |
<div class="off"><span class="off-span">OFF</span></div> | |
<div class="on"><span class="on-span">ON</span></div> |
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
sendBeacon attempt 0 with 0 bytes succeeded | |
... | |
sendBeacon attempt 362 with 65703 bytes succeeded | |
sendBeacon attempt 363 with 65703 bytes failed |
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
javascript:(function(){ var title = document.querySelector('.js-issue-title').innerText; var prNum = document.querySelector('.gh-header-number').innerText; var link = location.href.split('#')[0]; var text = `${title} [${prNum}](${location.href.split('#')[0]})` ; var b=document.createElement("textarea"), c=document.getSelection(); b.textContent=text, document.body.appendChild(b), c.removeAllRanges(), b.select(), document.execCommand("copy"), c.removeAllRanges(), document.body.removeChild(b); }()); |
NewerOlder