Skip to content

Instantly share code, notes, and snippets.

@kavu
kavu / example.go
Created September 28, 2013 10:01
Minimal Golang + Cocoa application using CGO. Build with `CC=clang go build`
package main
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
int
StartApp(void) {
[NSAutoreleasePool new];
@atrull
atrull / elite dangerous rare run notes
Last active August 29, 2015 14:12
elite dangerous rare run notes
rare run: from rares clustered to rares clustered in two runs each way - with a cobra mk3 and about 24-28 cargo slots.
based on clusters seen in this : https://www.elitedangeroustrader.co.uk/rares-systems-3d-map/
and a mid-point route from : https://cmdr.club/routes/
we need a cluster of rares to fill the ship
we need 150K or so LY between the clusters of rares.
@jbarrus
jbarrus / gulpfile.js
Last active August 7, 2017 10:12
protractor coverage support with gulp and istanbul (not tested, this is just extracted from larger files to demonstrate how to get protractor coverage working)
var istanbul = require('istanbul'),
gulp = require('gulp'),
istanbul = require('gulp-istanbul');
gulp.task('js', function() {
return gulp.src('js')
.pipe(istanbul({
includeUntested: true,
coverageVariable: '__coverage__'
}))
@pavtaras
pavtaras / webpack.config.js
Created May 15, 2017 07:08
Webpack config for AngularJS apps
var webpack = require('webpack'),
path = require('path');
module.exports = function(env){
env = env || {};
var isProd = env.isProd || false;
var config = {
context: path.resolve("./src"),
entry: {