Skip to content

Instantly share code, notes, and snippets.

💭
:shipit: 👍

Jake Heidt jheidt

💭
:shipit: 👍
  • NYC Metro Area
Block or report user

Report or block jheidt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jheidt
jheidt / pwsh-profiles.jsonc
Last active Jan 15, 2020
pwsh core profiles json
View pwsh-profiles.jsonc
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"requestedTheme": "system",
@jheidt
jheidt / twitch-automatically-claim-channel-points.js
Created Dec 19, 2019
Automatically claim twitch community points. Run in browser console.
View twitch-automatically-claim-channel-points.js
if( !!this['claimIntervalId'] && this['claimIntervalId'] > 0) {
console.log(`clearing interval (id = ${ this['claimIntervalId'] })`);
window.clearInterval(this['claimIntervalId']);
}
claimIntervalId = window.setInterval( () => {
const claim = document.querySelector('div.claimable-bonus__icon');
if(null !== claim) {
console.info('claimed reward!');
try { claim.parentElement.parentElement.click(); }
catch(e) { console.error(e); }
@jheidt
jheidt / zsh-lovers
Last active Aug 20, 2019
zsh-lovers manpage - great list of zsh examples
View zsh-lovers
ZSH-LOVERS(1) ZSH-LOVERS(1)
NAME
zsh-lovers - tips, tricks and examples for the Z shell
SYNOPSIS
Just read it. ;-)
View keybase.md

Keybase proof

I hereby claim:

  • I am jheidt on github.
  • I am jheidt (https://keybase.io/jheidt) on keybase.
  • I have a public key whose fingerprint is 69EA 5D8E D7D3 A0DA 367F D1FF 06D6 F864 DB54 E032

To claim this, I am signing this object:

View bingy.rb
require 'open-uri'
class Bingy
LANDING_PAGE = 'http://www.bing.com/translator'.freeze
SPEAK_URL = LANDING_PAGE + '/api/language/Speak?locale=en-US&media=audio/mp3'
def initialize(text, gender = 'male')
@user_agent = 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'
@params = { text: text, gender: gender }
end
View json-schema-tests.rb
#!/usr/bin/env ruby
require 'uri'
require 'yajl'
require 'json'
require 'json-schema'
require 'net/http'
require 'digest/sha1'
s3_data_transfer_schema = {
@jheidt
jheidt / local.conf
Created Jul 16, 2013
Fontconfig local.conf
View local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
save this file as /etc/fonts/local.conf
-->
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
@jheidt
jheidt / wkb.rb
Last active Dec 16, 2015
Messing around with a ruby Well-Known-Binary converter.
View wkb.rb
module WellKnownBinary
require 'bindata'
TYPE_ID = {
:point => 1,
:linestring => 2,
:polygon => 3,
:multipoint => 4,
:multilinestring => 5,
@jheidt
jheidt / formatsql.ps1
Created Apr 5, 2013
Updated version of Arvind Shyamsundar's 'pretty print sql' script. Accepts strings or files from the pipeline and writes to pipeline output.
View formatsql.ps1
<#
.SYNOPSIS
'Pretty print' a given T-SQL script
.DESCRIPTION
This script will format T-SQL scripts
.NOTES
Author : Arvind Shyamsundar (arvindsh@microsoft.com)
@jheidt
jheidt / empty.sql
Created Oct 26, 2015 — forked from xenoterracide/empty.sql
Find empty strings or strings containing only whitespace, for postgresql
View empty.sql
CREATE OR REPLACE FUNCTION empty(TEXT)
RETURNS bool AS
$$ SELECT $1 ~ '^[[:space:]]*$'; $$
LANGUAGE sql
IMMUTABLE;
COMMENT ON FUNCTION empty(TEXT)
IS 'Find empty strings or strings containing only whitespace';
You can’t perform that action at this time.