This file contains 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/python3 | |
results = {} | |
def stats(num): | |
if num in results: | |
return results[num] | |
if num == 1: | |
return 0 | |
if num % 2 == 0: | |
hops = stats(num // 2) + 1 |
This file contains 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 | |
# | |
# Call on .gitconfig with: "!bash -ec 'loggr $0 | less -r'" | |
# Params: | |
# commit - pass in commit to display just that commit | |
# | |
if [[ $1 != 'bash' ]]; then | |
if [[ $1 =~ [0-9a-f]{7} ]]; then | |
rl=($1) | |
else |
This file contains 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
/* | |
komodo tool: SCC Annotations | |
============================ | |
async: 0 | |
is_clean: true | |
keyboard_shortcut: Ctrl+K, Ctrl+A | |
language: JavaScript | |
rank: 100 | |
trigger: trigger_postopen | |
trigger_enabled: 0 |
This file contains 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/python3 | |
import curses | |
import subprocess | |
import io | |
import re, time | |
def anyKeyToContinue(stdscr): | |
stdscr.addstr('\n\nPress any key to continue...') | |
curses.doupdate() |
This file contains 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
<?php | |
class AnObj | |
{ | |
protected $methods = array(); | |
protected $properties = array(); | |
public function __construct(array $options) | |
{ | |