Skip to content

Instantly share code, notes, and snippets.

View slaskis's full-sized avatar

Robert Sköld slaskis

View GitHub Profile

Press release English Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tempus sem dapibus diam pharetra, eget eleifend enim tristique. Suspendisse potenti. Ut vitae velit eu nibh adipiscing dapibus ac eget eros. Sed faucibus gravida urna non bibendum. Donec mattis egestas ullamcorper. Donec blandit massa felis, ut laoreet mi tempus vehicula. Fusce feugiat ac mauris ac pellentesque.

· Fusce vitae libero nec ligula egestas posuere. Curabitur nec commodo urna. Sed varius interdum lacus at adipiscing. · Nam sodales, turpis quis gravida ultrices, quam purus consequat leo, vel sodales nisl massa vitae nulla. Fusce at blandit nibh. · Fusce nec risus vel velit commodo lobortis. · Nulla aliquam, est et blandit dignissim, ante leo dictum ipsum, non accumsan libero odio non erat. Pellentesque nec vestibulum risus, ac egestas felis.


Keybase proof

I hereby claim:

  • I am slaskis on github.
  • I am slaskis ( on keybase.
  • I have a public key ASDn3zylpBv0GLDfQ5YQzLFtLoS1-zwtWMf-nnWjfuWu1Qo

To claim this, I am signing this object:

View genesis_public_key
slaskis / inject.go
Created September 14, 2017 10:41
Silly command to add db tags to pb.go
View inject.go
package main
import (
slaskis / 1-pages-order.js
Last active September 8, 2017 07:15
Proposed Query component use with fragments
View 1-pages-order.js
import React from "react"
import {gql} from "react-apollo"
import OrderRow, {LoadingOrderRow} from "../components/OrderRow"
import SingleOrder from "../components/SingleOrder"
import ErrorMessage from "../components/ErrorMessage"
import Query from "../components/Query"
export default const Page => ({query}) =>
View App.js
import "./App.css";
import { Component, h } from "preact";
import {
slaskis / poachdb.js
Created May 20, 2016 09:19
A PouchDB-like HTTP interface which allows setting defaults and a `baseUrl` for easy CouchDB.
View poachdb.js
'use strict';
var debug = require('debug')('poachdb');
var http = require('request');
var merge = require('deep-extend');
module.exports = PoachDB;
function PoachDB(name, options) {
debug('PoachDB(%s, %j)', name, options);
slaskis / index.js
Last active March 18, 2016 09:54
requirebin sketch
View index.js
var Store = require('socrates')
// create a store
var store = Store({
boot: function(state, action) {
console.log('boot', state, action)
return action
// basically what the History middleware does
slaskis / package.json
Last active October 21, 2015 13:03
Basic Auth for S3
View package.json
"name": "bucket-password",
"version": "1.0.0",
"description": "",
"main": "server.js",
"dependencies": {
"aws-sdk": "^2.2.10",
"basic-auth": "^1.0.3"
"devDependencies": {},
slaskis / detect.js
Created September 18, 2015 09:13
Extract pixel info at a certain position in frames every second-ish in a video stream
View detect.js
#!/usr/bin/env node
/* eslint-env node */
'use strict';
var fs = require('fs');
var path = require('path');
var Canvas = require('canvas');
var Image = Canvas.Image;
var canvas = new Canvas(720, 406);