Skip to content

Instantly share code, notes, and snippets.

View icholy's full-sized avatar
💥
breaking things

Ilia Choly icholy

💥
breaking things
View GitHub Profile
barracuda
bigfish
bordeaux
bullwinkle
casanova
cherrystone
colusa
constantine
crusader
deepmind
static inline void
swap(char *s, size_t i, size_t j)
{
char tmp = s[i];
s[i] = s[j];
s[j] = tmp;
}
void
package lpcwstr
// #include <windows.h>
// #include <wchar.h>
// #include <WinNT.h>
import "C"
import (
"unicode/utf16"
"unsafe"
#!/usr/bin/env python
import git
import ipdb
import time
import enum
import datetime
import dateparser
import random
import json
module ol.geom {
export class Circle extends ol.geom.SimpleGeometry {
/**
* Circle geometry.
*
* @param center Center.
* @param opt_radius Radius.
This file has been truncated, but you can view the full file.
Running "jshint:all" (jshint) task
>> 2 files lint free.
Running "jshint:test" (jshint) task
>> 1 file lint free.
Running "karma:travis" (karma) task
31 03 2016 12:47:52.770:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
31 03 2016 12:47:52.774:INFO [launcher]: Starting browser PhantomJS
31 03 2016 12:47:52.931:INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket /#AEYWnSHFzNeIR-7RAAAA with id 56687022
function marshaller(clazz, options) {
let empty = function () { return {}; };
let encode = options.encode || empty;
let decode = options.decode || empty;
clazz.prototype.toJSON = function () {
return Object.assign({}, this, encode(this));
};

So you have a User type in your code.

interface User {
  name:    string;
  age:     number;
  created: Date;
}
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
typedef struct {
size_t size;
size_t *data;
size_t *weights;
} UnionFind;