Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Erik Unger ungerik

🎯
Focusing
Block or report user

Report or block ungerik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ungerik on github.
  • I am ungerik (https://keybase.io/ungerik) on keybase.
  • I have a public key ASBmJODsLopVmpTfCvsQGbVXOxRycRJHPFzIk5zN0Jkyzgo

To claim this, I am signing this object:

@ungerik
ungerik / extensions.txt
Last active Apr 6, 2017
Visual Studio Code Settings
View extensions.txt
code --list-extensions
TwentyChung.jsx
azemoh.one-monokai
bajdzis.vscode-database
dbaeumer.vscode-eslint
donjayamanne.python
emmanuelbeziat.vscode-great-icons
ilich8086.launcher
kumar-harsh.graphql-for-vscode
@ungerik
ungerik / bash.sh
Created Aug 18, 2016
cd $SCRIPT_DIR
View bash.sh
#!/bin/bash
SCRIPT_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd $SCRIPT_DIR
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ungerik
ungerik / all-countries.js
Last active Feb 6, 2016
All Country Codes
View all-countries.js
export const ALL_COUNTRIES = {
AD: "Andorra",
AE: "United Arab Emirates",
AF: "Afghanistan",
AG: "Antigua and Barbuda",
AI: "Anguilla",
AL: "Albania",
AM: "Armenia",
AN: "Netherlands Antilles",
AO: "Angola",
View snippets.cson
'.source.js.jsx':
'React.Component':
'prefix': 'comp'
'body': """
export default class $1 extends React.Component {
static displayName = "$1";
static propTypes = {
\\};
@ungerik
ungerik / open-terminal-tabs.sh
Created May 20, 2015
Open gnome terminal with multiple tabs
View open-terminal-tabs.sh
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
gnome-terminal --maximize \
--tab --title="PPA" --working-directory=$DIR \
--tab --title="PPA/source" --working-directory=$DIR/source \
--tab --title="PPA/server" --working-directory=$DIR/server \
@ungerik
ungerik / Package Control.sublime-settings
Last active Aug 29, 2015
Package Control.sublime-settings - User
View Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"Anaconda",
"Babel",
"GoSublime",
"JSONLint",
View go-if_err.sublime-snippet
<snippet>
<tabTrigger>if err</tabTrigger>
<scope>source.go</scope>
<description>if err != nil { return err }</description>
<content><![CDATA[if err != nil {
return err
}]]></content>
</snippet>
@ungerik
ungerik / generics.go
Last active Aug 29, 2015
Toying with generics syntax for Go
View generics.go
func sqr__T(val __T) __T {
return val * val
}
func typeof__T() reflect.Type {
return reflect.TypeOf((*__T)(nil)).Elem()
}
func() {
x := sqr__int(2)
You can’t perform that action at this time.