Skip to content

Instantly share code, notes, and snippets.

View enjikaka's full-sized avatar

Jeremy Karlsson enjikaka

View GitHub Profile
+ parse_args trace
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ trace =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
+ parse_args git-receive-pack ''\''youtube'\'''
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ parse_args git-receive-pack ''\''youtube'\'''
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
FROM ubuntu:15.10
MAINTAINER enjikaka
RUN apt-get update
# [Start] Install NGINX
## Install tools for nginx
RUN apt-get install -y nano wget dialog net-tools
## Install nginx
RUN apt-get install -y nginx
# [Finished] Install NGINX
@enjikaka
enjikaka / keybase.md
Created March 18, 2016 10:36
keybase.md

Keybase proof

I hereby claim:

  • I am enjikaka on github.
  • I am karlsson (https://keybase.io/karlsson) on keybase.
  • I have a public key ASDfz1FTjwgmWTZhP43ySR1_htM_JOsv8i0jMWaKaNezIgo

To claim this, I am signing this object:

@enjikaka
enjikaka / Preferences.sublime-settings
Last active April 6, 2016 11:29
Material Theme Sublime Text 3 Config for OS X - Jeremy Karlsson
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_face": "Hasklig Medium",
"font_options":
[
"gray_antialias",
"subpixel_antialias"
],
{
"version": "1.0",
"type": "rich",
"provider_name": "TIDAL",
"provider_url": "http://tidal.com/",
"width": 450,
"height": 180,
"title": "God is a girl",
"html": "<div class=tidal-embed data-type=t data-id=1176380></div><script src=https://embed.tidal.com/tidal-embed.js></script>"
}
@enjikaka
enjikaka / scale-canvas.js
Created November 4, 2016 20:09 — forked from callumlocke/scale-canvas.ts
Function to fix a canvas so it will look good on retina/hi-DPI screens.
/**
* This function takes a canvas, context, width and height. It scales both the
* canvas and the context in such a way that everything you draw will be as
* sharp as possible for the device.
*
* It doesn't return anything, it just modifies whatever canvas and context you
* pass in.
*
* Adapted from Paul Lewis's code here:
* http://www.html5rocks.com/en/tutorials/canvas/hidpi/
@enjikaka
enjikaka / string-template.js
Last active November 17, 2016 09:36
Reusable template strings
// Reusable template strings
// JSON and template literals
String.template = (template, data) => new Function('return `'+template+'`').call(data);
/*
String.template("Hello ${this.name}", { name: 'Jeremy' });
Would return "Hello Jeremy"