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 (https://keybase.io/slaskis) on keybase.
  • I have a public key ASDn3zylpBv0GLDfQ5YQzLFtLoS1-zwtWMf-nnWjfuWu1Qo

To claim this, I am signing this object:

04972864fe3bfd82b8268596057ed516041e1de0af766164564555e70d508b4dda751a8505de705ffcdba319d953187ceb0d93df7a319d013a58bf9827849167dc
@slaskis
slaskis / inject.go
Created September 14, 2017 10:41
Silly command to add db tags to pb.go
package main
import (
"bytes"
"go/ast"
"go/format"
"go/parser"
"go/token"
"io/ioutil"
"log"
@slaskis
slaskis / 1-pages-order.js
Last active September 8, 2017 07:15
Proposed Query component use with fragments
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}) =>
query.id
import "./App.css";
import { Component, h } from "preact";
import {
SearchkitManager,
SearchkitProvider,
RefinementListFilter,
Layout,
TopBar,
@slaskis
slaskis / poachdb.js
Created May 20, 2016 09:19
A PouchDB-like HTTP interface which allows setting defaults and a `baseUrl` for easy CouchDB.
'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
slaskis / index.js
Last active March 18, 2016 09:54
requirebin sketch
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
slaskis / package.json
Last active October 21, 2015 13:03
Basic Auth for S3
{
"name": "bucket-password",
"version": "1.0.0",
"description": "",
"main": "server.js",
"dependencies": {
"aws-sdk": "^2.2.10",
"basic-auth": "^1.0.3"
},
"devDependencies": {},
@slaskis
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
#!/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);