Skip to content

Instantly share code, notes, and snippets.

@n8rzz
n8rzz / Guardfile
Last active August 29, 2015 14:21
Guardfile
#!/usr/bin/env ruby
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
## Uncomment and set this to only include directories you want to watch
# directories %w(app lib config spec)
## Uncomment to clear the screen before every task
clearing :on
@n8rzz
n8rzz / Gemfile
Last active August 29, 2015 14:21
Gemfile
source 'https://rubygems.org'
gem 'rails', '4.2.1'
gem 'devise', '3.4.1'
gem 'pg'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'omniauth', '~> 1.2.2'
# Use ActiveModel has_secure_password
using System.Collections.Generic;
public class FormationModel
{
public string formationType;
public List<FormationPointModel> pointList = new List<FormationPointModel>();
public FormationModel(string type, List<FormationPointModel> pointsToAdd)
{
formationType = type;
/assets/airports/airportLoadList.js 3,400
/assets/airports/ksea.json 2,910
/assets/airports/terrain/ksea.geojson 2,903
/assets/airports/eidw.json 631
/assets/airports/terrain/eidw.geojson 613
/assets/airports/kbos.json 410
/assets/airports/terrain/kbos.geojson 400
/assets/airports/terrain/mdsd.geojson 345
/assets/airports/mdsd.json 343
/assets/airports/ksfo.json 156
@n8rzz
n8rzz / TOS-custom-or-modified-studies.md
Last active February 9, 2022 07:26
customized studies for use within TDAmeritrade's ThinkOrSwim trading platform

ATRLatest

#
# TD Ameritrade IP Company, Inc. (c) 2014-2018
#
# Uses basic most recent value from ATR study then 
# displays value in a colorized label
#
# Modified by Nate Geslin (teamtomkins23@gmail.com)
@n8rzz
n8rzz / SofleKeyboard---nacerous.kbd.json
Last active July 18, 2021 01:45 — forked from josefadamcik/SofleKeyboard.kbd.json
SofleKeyboard - nacerous
[
{
"name": "SofleKeyboard - nacerous",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 3,
@n8rzz
n8rzz / ui-experiment.tsx
Last active October 30, 2021 23:02
ui-experiment.tsx
import React from 'react';
export enum ExperimentName {
a = 'a',
b = 'b',
}
export type Experiment = {
[key in ExperimentName]: React.ReactNode;
};
@n8rzz
n8rzz / ui-experiement-usage.tsx
Last active October 30, 2021 22:02
ui-experiement-usage.tsx
<UiExperiment
a={<p>Using Experiments is simple and Awesome!</p>}
b={<UiTypography component={'p'} size={'body'}>Using Experiments is simple and Awesome!</UiTypography>}
isExperiementActive={true}
/>
@n8rzz
n8rzz / ui-button-with-switch.tsx
Last active October 23, 2021 15:27
ui-button-with-switch.tsx
<UiButton
isV1={true}
variant={UiButtonVariant.Solid}
>
This is a Solid Button!
</UiButton>
@n8rzz
n8rzz / ui-experiement-in-action.tsx
Created October 17, 2021 16:29
ui-experiement-in-action.tsx
<UiExperiments
a={
<UiMainButton_V1
classes={{ root: classes.button }}
minWidth={90}
testId={`${props.testId}_go-to-start-button`}
TouchRippleProps={{ classes: { ripple: classes.buttonRipple } }}
onClick={props.snapStartHandler}
>
{localizationStore.translate('ShaperPage:start')}