Skip to content

Instantly share code, notes, and snippets.

@nuesslerm
nuesslerm / main.dart
Created June 9, 2023 14:21
mellow-end-2335
void main() {
final ChatState state = ChatStateLoading();
final stateLoaded = state as ChatStateLoaded?;
print('stateLoaded: $stateLoaded');
}
abstract class ChatState {
String? appBarTitle;
@nuesslerm
nuesslerm / keymap.cson
Created January 5, 2023 02:13 — forked from ngr-t/keymap.cson
My keymap config file for Atom editor.
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
@nuesslerm
nuesslerm / postgres-brew.md
Created July 6, 2021 15:28 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@nuesslerm
nuesslerm / .eslintrc.js
Created August 8, 2020 00:19 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@nuesslerm
nuesslerm / .eslintrc.js
Created August 8, 2020 00:19 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@nuesslerm
nuesslerm / tmux-cheatsheet.markdown
Created April 19, 2020 02:21 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@nuesslerm
nuesslerm / .tmux.conf
Created April 19, 2020 02:05 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@nuesslerm
nuesslerm / tmux.conf
Created April 19, 2020 02:05 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@nuesslerm
nuesslerm / gist:718921dd807ac8fe9e43e0ee6446263d
Created April 18, 2020 00:26 — forked from manute/gist:5451435
my zsh config with oh-my-zsh
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
#JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
#MAVEN
export M2_HOME=/usr/local/maven-3.0.5
export MAVEN_OPTS=-Xmx1024m
@nuesslerm
nuesslerm / happy_git_on_osx.md
Created December 8, 2019 13:59 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "[email protected]"