Skip to content

Instantly share code, notes, and snippets.

var msg = JSON.stringify( state );
var getUTF8Size = function( str ) {
var sizeInBytes = str.split('')
.map(function( ch ) {
return ch.charCodeAt(0);
}).map(function( uchar ) {
// The reason for this is explained later in
// the section “An Aside on Text Encodings”
return uchar < 128 ? 1 : 2;
var slimState = [[
0,
15.290663048624992,
2.0000000004989023,
-24.90756910131313,
0.32514392007855847,
-0.8798439564294107,
0.32514392007855847,
0.12015604357058937
], [
@incompl
incompl / gist:3819571
Last active March 19, 2023 16:05
Git needs help

The git command-line interface sucks

When I use git, I'm scared I'll break something. I just talked to an open source celebrity who has used git for 3-4 years who avoids using the CLI because he's afraid he'll break something, and uses Tower when possible. I recently had a client accidentally delete their work because they didn't understand git. My fear of breaking something is well-founded.

You can't put a price on the confidence that source control is supposed to give you. That confidence suffers when people are afraid of causing irreparable damage during normal use.

This article lists a few ideas on what git can do to improve.

A Controlled Vocabulary

@incompl
incompl / index.html
Created October 25, 2012 00:07
flexbox.incompl.com
<!doctype html>
<html>
<head>
<title>vertical centering 4 lyfe</title>
<link href='http://fonts.googleapis.com/css?family=Handlee' rel='stylesheet' type='text/css'>
<style>
html {
height: 100%;
}
@incompl
incompl / gist:3970103
Created October 28, 2012 22:05
vietnamese inspired salad

Dressing (Nước chấm)

  • lime juice
  • vinegar
  • fish sauce
  • sugar
  • water
  • minced garlic (optional)
  • red pepper flakes (optional)
@incompl
incompl / gist:3977085
Created October 29, 2012 22:57
pic of me
==$==========*=****************************!*!!**!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!;!!!!!!!!!;!!;!!!!!!!!;!!!!!!!!!!!!!!!!!!
==============*=*********************************!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!!!!;!!!!!!!!!!!!;!!;!!;!!;!!!!!!!!!!!!!!!!;!!!!!!!!!;!!!!!!!!!!!!
=========***==*=***************************!**!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!!!;;!!!!;!!!!!!!!!;!;!!!!;;!!!;!!!!!;!!!!!!!!!!!!!!!!
====*======**=****************************!!*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!!;!!!;!!!!!;!!!!!!!;!!;!!!!!;!;!;;!!!;!!!;;!!!!!!!!!!!!
==========*===************************!!***!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!;!!!!!;!!!!!!;!!!;;!!!!;!!!!!!!!!!;;!!!!!!;;!!!!!!!!!!!!!!!!!!!
==========*=*********************!***!*****!!!*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!!!!!!;!;!!!;!!!!;;!!;!;!;;!!!;!!;!!!;;;!!!;!!!!!!!!!!!!!!!!!!!
============***************************!!!**!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;!!!!!;!!!!!!!!!!!;
@incompl
incompl / install.log
Created November 9, 2012 16:25
rails one click installation log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 460k 0 1191 0 0 1571 0 0:05:00 --:--:-- 0:05:00 12406
68 460k 68 314k 0 0 185k 0 0:00:02 0:00:01 0:00:01 305k
100 460k 100 460k 0 0 212k 0 0:00:02 0:00:02 --:--:-- 306k
x yaml-0.1.4/
x yaml-0.1.4/tests/
x yaml-0.1.4/tests/example-reformatter-alt.c
x yaml-0.1.4/tests/example-deconstructor.c
namespace BladeClassLibrary1
{
public class Class1
{
string myString;
public Class1()
{
myString = "Hello";
}
if(typeof BladeClassLibrary1 == 'undefined') BladeClassLibrary1 = {};
BladeClassLibrary1.Class1 = (function() {
function Class1() {
this.myString = 'Hello';
}
var p = Class1.prototype;
p.myString = null;
return Class1;
})();
Date d = new Date();
string s = d.toTimeString();
double i = Math.random();
s = i.toString();