Skip to content

Instantly share code, notes, and snippets.

View TrueWill's full-sized avatar

Bill Sorensen TrueWill

View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active November 20, 2024 12:51
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@CarlRevell
CarlRevell / class_logger.asp
Last active November 4, 2022 07:56
Simple classic ASP log to file class.
<%
'// Usage:
'//
'// dim l : set l = new logger
'// l.log("Hello")("World")
'// l.includeTimetamp = false
'// l("Lorem ipsum")
'// l.setLogFile("c:\temp\log_2.log").log("This is a new log!")
'// set l = nothing
@sha1sum
sha1sum / go.xml
Created March 26, 2016 13:02
GOlang File Format for Beyond Compare
<?xml version="1.0" encoding="UTF-8"?>
<!-- Produced by Beyond Compare 4 from Scooter Software -->
<!--
This is an extension of the work done by Nate Finch:
https://npf.io/2014/05/diffing-go-with-beyond-compare/
The regular expressions for identifiers have been updated
to match on lowercase and allow numbers to be included anywhere
after the first character of the word.
@abhiaiyer91
abhiaiyer91 / reduxSelectorPattern.md
Last active July 7, 2024 13:03
Redux Selector Pattern

Redux Selector Pattern

Imagine we have a reducer to control a list of items:

function listOfItems(state: Array<Object> = [], action: Object = {}): Array<Object> {
  switch(action.type) {
    case 'SHOW_ALL_ITEMS':
      return action.data.items
    default:
@acamino
acamino / README.md
Last active November 14, 2024 08:12
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor
@dalegaspi
dalegaspi / brew_symlink_error_sierra.md
Last active January 4, 2024 22:32
Homebrew Symlink errors in Mac OSX High Sierra
@phillmv
phillmv / email-filter.js
Last active March 29, 2024 15:13
Google App Script for handling github notifications
// email-filter.js
// Set this up by visiting https://script.google.com/home
// see below for
// CONFIGURATION
// begin things you can change or should know about:
// list the teams you care about here:
// the script will search email messages for these specific
// mentions
var myTeams = [ "@github/pe-security-workflows" ]
@adriandmitroca
adriandmitroca / app.js
Created July 17, 2019 12:30
Lottie, automatically fixing SVG scaling issue on Internet Explorer 11
const lottieIeFixer = (el, perspective = 'width') => {
if (!window.navigator.userAgent.includes('Windows') && !window.navigator.userAgent.includes('rv:11.0')) {
return;
}
const $el = $(el);
const width = $el.width();
const height = $el.height();
const $svg = $el.find('svg');
@TrueWill
TrueWill / index.ts
Created May 23, 2020 22:15
Tzientist demo
import * as scientist from 'tzientist';
// Gregory-Leibniz series to calculate Pi
// from https://stackoverflow.com/questions/39574989/calculating-pi-in-javascript-using-gregory-leibniz-series
function oldPi(): number {
const n = 4000;
let v = 0;
for (let i = 1; i <= n; i += 4) {
v += 1 / i - 1 / (i + 2);
@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'