Skip to content

Instantly share code, notes, and snippets.

@Plastefuchs
Plastefuchs / tmux.md
Created October 26, 2015 11:20 — forked from Bekbolatov/tmux.md
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session

This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.

At its core, require.js is about three things:

  1. Dependency management
  2. Modularity
  3. Dynamic script loading

The following files show how these are achieved.

13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@Plastefuchs
Plastefuchs / gist:7907884
Created December 11, 2013 10:03
Deep copy of a list
In [154]: x = ['foo', [1,2,['bar','baz']], 10.4]
In [155]: y = x[:]
In [156]: y
Out[156]: ['foo', [1, 2, ['bar', 'baz']], 10.4]
In [157]: y[1][2][1]='rump'
In [158]: y