Skip to content

Instantly share code, notes, and snippets.

View kljensen's full-sized avatar
😵‍💫
0101010101

k⃝͡yl͜e j⃝͡en͜s͜en kljensen

😵‍💫
0101010101
  • ᒪ̊Λ̸̊ṅ̊̇ï̊̈ä̊̇̈k̊̇̈̊ë̊̈̇̊ä゚̈̇̊𖦹゚ Ꮥ̊͜͡ᑌ̊͜͡ᑭ̊͜͡Ɛ̊͜͡ᖇ̊͜͡ᑕ̊͜͡ᒪ̊͜͡ᑌ̊͜͡Ꮥ̊͜͡Ƭ̊͜͡Ɛ̊͜͡ᖇ̊ ⟳ ✧゚꩜
  • /dev/null
View GitHub Profile
@kljensen
kljensen / sshfs-git-fetch-error.md
Created December 19, 2016 20:07
Getting errors when doing git fetch or git pull over ssh

If you get this error

> git fetch                                                                                                                                                   ──(master !?)─┘
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 27 (delta 9), reused 3 (delta 3), pack-reused 8
error: unable to create temporary file: Interrupted system call
fatal: failed to write object
fatal: unpack-objects failed
// Taken from http://forum.arduino.cc/index.php?topic=259450.0
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
def transpose_corpus(corpus, output, limit):
""" Transpose a corpus in Matrix Market format.
"""
corpus = corpora.MmCorpus(corpus)
corpus2 = [list() for i in range(corpus.num_terms)]
for (i, doc) in enumerate(corpus):
for (j, count) in doc:
corpus2[j].append((i, count))
if limit > 0 and i >= limit:
break
@kljensen
kljensen / postgres_queries_and_commands.sql
Created March 23, 2016 19:46 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
Introduction to Computing and Software
* Introduction to computers and web applications
https://www.youtube.com/watch?v=KqxS6G_W9y4
* The art of writing software
https://www.youtube.com/watch?v=QdVFvsCWXrA
Introduction to Management of Software Development
Scrum and Agile Project Management (part 1)
* Why Software is Eating the World
WSJ 8/20/2011
http://online.wsj.com/articles/SB10001424053111903480904576512250915629460
@kljensen
kljensen / how-to-pull-in-test-changes.sh
Last active October 31, 2015 14:16
How to pull in test changes
# Make sure you have some remote that points to https://github.com/yale-mgt-656/mgt656-spring-2015-project
# Here, we'll call it Kyle
git remote add kyle https://github.com/yale-mgt-656/mgt656-spring-2015-project
# Fetch changes
git fetch kyle
# Now, you could merge those, or rebase on top of them.
git merge kyle/master
// Compute the area of many circles
var r, area;
r = 5;
area = Math.PI * r * r;
console.log('The area of a circle with radius r =', r, 'is', area);
r = 15;
area = Math.PI * r * r;

Yale-MGT656-Arduino-LED-activity.md

The purpose of this activity is to "get your hands dirty" with computer hardware and code. We'll be using a microcontroller called the Ardiuno to control light emitting diodes (LED) via software we write.

Step one: light up the LED

Host yale-bastion
HostName YOUR-ON-CAMPUS-MACHINE.yale.edu
User YOUR-NET-ID
ForwardAgent yes
Host yalegit
HostName git.yale.edu
User YOUR-NET-ID
ProxyCommand ssh yale-bastion -W %h:%p
@kljensen
kljensen / gist:ec1c5832eebd59774c63
Created January 29, 2015 00:51
mgt656-tsnugs-letter
A LOVE LETTER FROM T-SNUGS
Dear blue Ted The Man Snyder ,
The anxious joint degrees cuddles over the crafty Kyle's Baldspot.
When better Snow Day attack blue first years, then a dinosaur jump through
the entire battleship and synergies becomes evil.
That is right! anxious ecosystem services.