Skip to content

Instantly share code, notes, and snippets.

@northofnormal
northofnormal / ssscopypasta
Created January 8, 2020 00:05
Server Side Swift JSON, HTML, and other copyables
// sample JSON post
{
"title": "Server Side Swift Saves CodeMash",
"presenter": "Anne Cahalan",
"notes": "This is the superbest session I am learning so much!!!",
"rating": 10
}
// that gnarly Docker command
docker run --name notes -e MYSQL_USER=vapor -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=vapor -p 3306:3306 -d mysql/mysql-server:5.7
@northofnormal
northofnormal / gist:3156b3255ed55e9b3f6690a8bfad6ca5
Created July 3, 2018 11:35
Notes from the “Muddling Through The Middle Bits” Fishbowl
Q1: "Releasing the suck" requires confidence and belief in yourself. How can we start speaking and acting with confidence...when we don't have that confidence yet?
* There’s a grey zone to “release the suck.” It needs to start as you a junior, easing your way in. Organizations need to allow space for juniors to do that and show that growth.
* “Fake it ‘till you make it” is a thing, to just start pretending you can do it until other people believe it, and then you believe it
* Requires you to show some vulnerability and get into the larger community
* Volunteer for new opportunities, get out of your comfort zone—even a little bit. Bonus if there’s a way to do that while maintaining some comfortability or “safety.”
* “I don’t WANT to, but I should, for the sake of my career”
* Junior devs are expected to fail. The difference between junior and mid-level devs is the level of support they will need.
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@northofnormal
northofnormal / git-prompt.sh
Created December 3, 2018 18:13
git prompt script
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@northofnormal
northofnormal / bashprofile
Created December 3, 2018 14:45
my bash profile
export GOPATH="$HOME/Development/platform-tools/bin:"
export PATH="$HOME/.node/bin:$GOPATH/bin:$PATH"
function gotime {
echo -e "\033[0;36mGet to work!\033[m"
ox
}
function out {
echo -e "\033[0;36mChecking Out\033[m"
@northofnormal
northofnormal / resetSimulators.sh
Created December 3, 2018 14:44
code for resetting ios simulators from the command line
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@northofnormal
northofnormal / weather.rb
Created December 3, 2018 14:42
Weather Fetching for command line weather emoji
#!/usr/bin/ruby
# Next steps:
# refresh periodically?
# update location from command line?
require 'open-uri'
require 'json'
state = ARGV[0]
#include <stdio.h>
int main (void) {
float d;
float half, square, cube;
printf("Enter a number between 1 and 100: \n");
scanf("%f", &d);
half = d/2;
square = d*d;
#include <stdio.h>
int main (void) {
float d = 6.5;
float half, square, cube;
half = d/2;
square = d*d;
cube = d*d*d;
@northofnormal
northofnormal / learning iOS and other things
Created February 22, 2015 22:55
Some resources for learning iOS and other things
##Tutorials/Books/Learning Stuff
##Classes
http://apprend.org/ -- started by some friends of mine who seriously know their shit. Looks like it's some fairly intro stuff right now, but I know they are hoping to build more classes.
http://www.grandcircus.co/ -- offers variations on the thing I did in Toronto, some of them full time, some of them evening/weekend affairs. I've heard mixed reviews of them. I know some people who took their classes and were mostly happy with the classes. I know some people who teach there and have good things to say. But I also know a couple people who have taught there in the past or who have worked there and who refuse to have anything to do with the place now. All of the deeply anti-GC people are women, though, which is a specific kind of interesting.
https://www.girldevelopit.com/chapters/detroit -- It's not just for girls! They offer meetups and smaller tech classes. A lot of them are more entry-level, but occasionally they'll offer something a little more advanced.
###