Skip to content

Instantly share code, notes, and snippets.

View pinne's full-sized avatar

Simon Kers pinne

View GitHub Profile
% Exercise 2.4
% Database Handling Using Lists
%
% skers@kth.se 2013
%
-module(db).
-export([ new/0
, destroy/1
, write/3
Hello world
-----------
some text goes here
  • 5 stora potatis
  • 2 grovrivna morötter
  • 1 vitlöksklyfta
  • 1 näve gröna sojabönor
  • 2 dl röda linser
  • 1 liter grönsaksbuljong
  • 1-2 msk vetemjöl
  • 2 tsk gurkmeja (eller curry)
  • Ingefärapulver
  • Cayennepulver
@pinne
pinne / Button.js
Last active February 5, 2016 09:49
"use strict";
(function () {
var Widget = app.Widget;
var Button = app.Button = function (className, label) {
Widget.apply(this, arguments);
this.el = document.createElement('button');
this.label = label;
this.el.innerHTML = label;

MYM mötesanteckningar

Anteckningar och åtgärdslistor från mötet 2 april 2016, närvarande Simon, Åsa och Paula.

Beskrivning

MYM är en icke-religiös, partipolitiskt obunden osv. förening. Jobbar för att förbättra situationen för utsatta barn i Tanzania. Har ett barnhemsprojekt på Ukerewe, där det även köpts mark.

'use strict';
angular.module('myApp', ['myApp.second'])
.controller('appCtrl', ['$scope', 'cfg', function ($scope, cfg) {
$scope.value = cfg["KEY"];
$scope.show = cfg.enabled;
$scope.setting = '';
}
]);
//App.js
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createStore } from 'redux';
class App extends Component {
constructor(props) {
super(props);
}
let contentful = require('contentful')
const space = 'kl86qt22vgc9'
const accessToken = 'faa977ce007881a00f698b518482190e13c037b0b1011766101aad9c6bb5f107'
let client = contentful.createClient({ space, accessToken })
async function fetchEntry (entry) {
try {
const reply = await client.getEntry(entry)
return reply.fields
} catch (error) {
Verifying my Blockstack ID is secured with the address 1LS5XGMLQxuFkLYbwQM6DXUXqA1Cx32Gqk https://explorer.blockstack.org/address/1LS5XGMLQxuFkLYbwQM6DXUXqA1Cx32Gqk
@pinne
pinne / proof
Created January 30, 2018 18:56
Keybase proof
### Keybase proof
I hereby claim:
* I am pinne on github.
* I am kers (https://keybase.io/kers) on keybase.
* I have a public key ASDP1tvunS1yyp_YEJ33C51k9KS-KummJOPRPrd4baHwswo
To claim this, I am signing this object: