Skip to content

Instantly share code, notes, and snippets.

View timofei7's full-sized avatar

Tim Tregubov timofei7

View GitHub Profile
@timofei7
timofei7 / jsbin_settings.js
Last active January 4, 2016 10:09
jsbin_settings
settings = {
jshint: true,
editor: {
theme: "lesser-dark",
indentUnit: 2,
smartIndent: true,
tabSize: 2,
indentWithTabs: false,
autoClearEmptyLines: true,
lineWrapping: false,
@timofei7
timofei7 / .eslintrc
Created June 8, 2016 04:05
cs52: eslintrc for react with es6 and airbnb
{
extends: "airbnb",
parser: "babel-eslint",
env: {
browser: true,
node: true,
es6: true
},
rules: {
strict: 0,
@timofei7
timofei7 / README.md
Created November 15, 2016 04:47
README.md example

Project Name

TODO:

  • short project description
  • some sample screenshots or mockups

Architecture

TODO: descriptions of code organization and tools and libraries used

@timofei7
timofei7 / format_email.py
Created March 29, 2017 01:27 — forked from jason-feng/format_email.py
Formats emails nicely for slack
## Turns list of dartmouth emails into formatted emails with first and last name
f = open("names.txt")
o = open("names_edit.txt", 'w')
for email in f.readlines():
email = email.strip()
email = email[:-1] # Remove semicolon
bracket_email = "<" + email + ">" # Now its like <jason.s.feng.17@dartmouth.edu>
at_index = email.rfind("@")
name = email[0:at_index-3] # get just the jason.s.feng
@timofei7
timofei7 / geog54_homebrew
Last active July 18, 2017 08:17
homebrew install software for GEOG54 (may need babysitting)
#install homebrew
# homebrew (from http://brew.sh) is an opensource software package manager for os x
# very much awesome
# installs into /usr/local so you may want to: mv /usr/local /usr/local.old beforehand
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# tap extra geog related formulas
brew tap dakcarto/osgeo4mac
brew tap homebrew/science
@timofei7
timofei7 / .eslintrc
Created May 14, 2018 00:13
eslintrc for react-native projects
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true,
"es6": true
},
"rules": {
"strict": 0,
{
"basics": {
"name": "Tim Tregubov",
"label": "Director, Co-founder at DALI Lab; Senior Lecturer in Computer Science",
"picture": "",
"email": "tim@zingweb.com",
"phone": "603.219.6514",
"website": "http://zingweb.com",
"summary": "Educating and Innovating through Code and Design",
"location": {
@timofei7
timofei7 / TTMonoBehaviour.cs
Created March 15, 2015 20:08
monobehaviour extension that adds exception handling, aalue retrieval, and locking to Unity C# coroutines
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Extending MonoBehaviour to add some extra functionality
/// Exception handling from: http://twistedoakstudios.com/blog/Post83_coroutines-more-than-you-want-to-know
///
/// 2013 Tim Tregubov
@timofei7
timofei7 / Singleton.cs
Last active October 1, 2022 10:06
unity3d c# singleton class with automatic prefab loading
using UnityEngine;
using System.Collections;
using System;
/// <summary>
/// Prefab attribute. Use this on child classes
/// to define if they have a prefab associated or not
/// By default will attempt to load a prefab
/// that has the same name as the class,
/// otherwise [Prefab("path/to/prefab")]