I hereby claim:
- I am anson-vandoren on github.
- I am ansonvandoren (https://keybase.io/ansonvandoren) on keybase.
- I have a public key whose fingerprint is 86A6 C0BC 74C3 0D71 BE11 C590 2D1D A511 8D1B C5BD
To claim this, I am signing this object:
// Karma configuration | |
// Generated on Wed Jul 22 2015 18:41:14 GMT+0900 (Tokyo Standard Time) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
/** | |
* Produce a formatted SpannableString object from a given String | |
* input, with all lowercase characters converted to smallcap | |
* characters. Uses only standard A-Z characters, so works with | |
* any font. | |
* | |
* @param input The input string, e.g. "Small Caps" | |
* @return A formatted SpannableString, e.g. "Sᴍᴀʟʟ Cᴀᴘs" | |
*/ | |
public static SpannableString getSmallCapsString(String input) { |
#NoEnv | |
#Warn | |
#SingleInstance force | |
SendMode Input | |
; Use Command-Space to pin a window on top | |
#Space:: Winset, Alwaysontop, , A | |
Return | |
; Change control-W to control-F4 |
####### | |
# One # | |
####### | |
import re | |
def longest_prefix(str_list): | |
sorted_strs = sorted(str_list, key=lambda x: len(x)) | |
longest = sorted_strs[-1] |
I hereby claim:
To claim this, I am signing this object:
GIT_AUTHOR_NAME="Your Name" | |
GIT_AUTHOR_EMAIL="your.email@address.com" | |
# if there is no username set, set it now | |
if ! git config --list | grep -q "user.name"; then | |
git config --file ~/.gitconfig_private user.name "$GIT_AUTHOR_NAME" | |
fi | |
# if there is no user email set, set it now | |
if ! git config --list | grep -q "user.email"; then |
[user] | |
name = John Q. Developer | |
email = johnqdev@company.com | |
[alias] | |
l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f" | |
branches = branch -a |
$ sudo apt-get update
$ sudo apt-get install python3 python3-pip
#!/bin/sh | |
########################################################################## | |
# Note: you must have set up your Travis CI environment variables for this | |
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID | |
# For more details, see the Telegram documentation at: | |
# - https://core.telegram.org/bots/api | |
# and the blog posts at: | |
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/ | |
# - https://ansonvandoren.com/posts/travis-telegram-integration/ |
class Solution: | |
def brokenCalc(self, x: int, y: int) -> int: | |
if y < x: | |
return x - y | |
# find next power of 2 | |
next_highest_power_of_two = 1 |