Skip to content

Instantly share code, notes, and snippets.

View christoga's full-sized avatar
🙌
Go to @drepram, instead.

Andre Christoga Pramaditya christoga

🙌
Go to @drepram, instead.
View GitHub Profile
@christoga
christoga / japs.js
Created April 17, 2017 16:16
jQuery app download snippet
$(document).ready(function (){
if(navigator.userAgent.toLowerCase().indexOf("android") > -1){
window.location.href = 'https://play.google.com/store/apps/details?id=com.example.android';
}
if(navigator.userAgent.toLowerCase().indexOf("iphone") > -1){
window.location.href = '';
}
});
@christoga
christoga / exit.py
Created April 17, 2017 16:14
Python exit snippet
#!/usr/bin/env python
import time
def main():
exit()
def exit():
input = raw_input("Exit? Yes[y] or No[n] ")
if input == 'y':
print 'Exiting program...'
@christoga
christoga / hyper.js
Last active April 10, 2017 03:10
Hyper terminal config
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.75)',
@christoga
christoga / .zshrc
Last active April 10, 2017 03:09
My ZSH Configuration
# Path to your oh-my-zsh installation.
export ZSH=/Users/andrechristoga/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="materialshelloceanic"
# Uncomment the following line to use case-sensitive completion.