- Start project
full project name
- Start project
fpn
- Start new entry
- New entry
- Start on
some entry description
- Start on
some project name
- Start
some entry description
- Start
some project name
- End entry
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
defmodule Notifier.Webhook.App do | |
use Application | |
require Logger | |
def start(_type, _args) do | |
Logger.debug("App.start") | |
import Supervisor.Spec | |
children = [ | |
supervisor(Notifier.Webhook.Worker, []), |
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
// ==UserScript== | |
// @name RedditHider | |
// @namespace https://www.reddit.com | |
// @version 0.2 | |
// @description Hide Reddit main page when a thread is opened | |
// @author Ricky Cook | |
// @include https://www.reddit.com/* | |
// @grant none | |
// @updateURL https://gist.githubusercontent.com/RickyCook/72fc3a971a638b10864d98ffe3fc2ffd/raw/main.js | |
// ==/UserScript== |
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
/* Checks the state of a Promise without need to wait for a non-pending result | |
* | |
* This is an issue, because the state of a Promise object is inaccessible from | |
* JavaScript, so we are unable to take actions based on the current state of | |
* a Promise being pending or not | |
*/ | |
const PROMISE_STATE_PENDING = Symbol() | |
async function promiseState(prom) { | |
try { | |
const result = await Promise.race([prom, Promise.resolve(PROMISE_STATE_PENDING)]) |
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 python | |
""" Approximate recreation of the ``hexdump`` CLI utility. | |
Several versions of the function are included: | |
hexdump_lines: Dumps out an iterator of lines. I/O is streamed by generators | |
hexdump_string: Splits, and dumps out a string | |
hexdump_stream: Splits, and dumps out a stream. I/O is streamed | |
Examples: |
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/bash | |
set -e | |
this_dir="$(cd "$(dirname "$0")"; pwd)" | |
script_name="$0" | |
repo_prefix='https://github.com/trufflesuite/' | |
repo_suffix='.git' |
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 smartFormsStaticPrefix = '/_smart_forms/static', | |
smartFormsApiPrefix = '/_smart_forms/api' | |
function smartFormsInit() { | |
var req = new XMLHttpRequest() | |
function transformElementUrls(el) { | |
var href = el.getAttribute('href'), | |
src = el.getAttribute('src') | |
if (href !== null) el.setAttribute('href', smartFormsStaticPrefix + '/' + href) |
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
alert('loaded from github') |
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
install | |
text | |
skipx | |
unsupported_hardware | |
lang en_AU.UTF-8 | |
timezone Australia/Melbourne | |
keyboard us | |
network --bootproto=dhcp |
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
GROUP_BITS = 31 | |
PRIME = 7 | |
def ddd(index): | |
""" | |
Examples: | |
>>> ddd(111) | |
'00*00*0001***0*0*001****0**0**' | |
""" |