Skip to content

Instantly share code, notes, and snippets.

type Fn<T, R> = (x: T) => R;
declare function pipeArgs<T, A, B, C>(source: T, op1: Fn<T, A>, op2: Fn<A, B>, op3: Fn<B, C>): C;
declare function pipeArgs<T, A, B>(source: T, op1: Fn<T, A>, op2: Fn<A, B>): B;
declare function pipeArgs<T, A>(source: T, op1: Fn<T, A>): A;
declare function pipeArray<T, A, B, C>(source: T, ops: [Fn<T, A>, Fn<A, B>, Fn<B, C>]): C;
declare function pipeArray<T, A, B>(source: T, ops: [Fn<T, A>, Fn<A, B>]): B;
declare function pipeArray<T, A>(source: T, ops: [Fn<T, A>]): A;
module.exports.rules = {
'no-default-export': function(context) {
return {
ExportDefaultDeclaration: function(node) {
context.report(node, 'Default exports are not allowed.');
}
};
}
};

Keybase proof

I hereby claim:

  • I am kimjoar on github.
  • I am kimjoar (https://keybase.io/kimjoar) on keybase.
  • I have a public key ASAlPgxy5Rw4uZToevAd2fdalEfs9KGIrkBKEpYBT-0cvAo

To claim this, I am signing this object:

@kimjoar
kimjoar / gist:99bbdeb5a33d94c98a2f
Created November 13, 2014 22:11
Fill all directions
<!doctype html>
<html>
<head>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
var net = require('net');
var socket = net.connect({ port: 8001 });
process.stdin
.pipe(socket)
.pipe(process.stdout);
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div ng-controller="GreetingController">
<label>Name: <input type="text" ng-model="name"></label>
npm test 2>&1 | grep -m1 -B1000 '\.\.\.'
var gulp = require('gulp');
var concat = require('gulp-concat');
var header = require('gulp-header');
var footer = require('gulp-footer');
var templateCache = require('./template-cache');
var templateCacheWrapper = require('./template-cache-wrapper');
gulp.task('default', function() {
var templateHeader = "{{ angular }}.module('{{ module }}'{{ standalone }}).run(['$templateCache', function($templateCache) {\n";
var templateFooter = "}]);\n"
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<warSourceExcludes>**</warSourceExcludes>
<webResources>
<webResource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<includes>
<include>web.xml</include>
$(document).ready(function() {
$('#new-status form').submit(function(e) {
e.preventDefault();
$.ajax({
url: '/status',
type: 'POST',
dataType: 'json',
data: { text: $('#new-status').find('textarea').val() },
success: function(data) {