Skip to content

Instantly share code, notes, and snippets.

@anson-vandoren
anson-vandoren / telegram_notification.sh
Created February 28, 2019 17:58
Travis-Telegram notification script
#!/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/
#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
@anson-vandoren
anson-vandoren / GetSmallCapsString.java
Created January 22, 2016 18:56 — forked from markormesher/GetSmallCapsString.java
Create a small-caps spannable string that will work with any font
/**
* 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) {
@anson-vandoren
anson-vandoren / karma.config.js
Created July 23, 2015 10:35
Configuration to finally get Karma working with RequireJS. After Karma is installed, run `karma start karma.config.js`
// 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: '',