Skip to content

Instantly share code, notes, and snippets.

View dutchmartin's full-sized avatar

Martijn Groeneveldt dutchmartin

View GitHub Profile
@dutchmartin
dutchmartin / sprattus_traits.rs
Last active October 25, 2019 13:09
sprattus traits
pub trait FromSql {
fn from_row(row: &Row) -> Result<Self, Error>
where
Self: Sized;
}
pub trait ToSql {
type PK;
fn get_primary_key_value(&self) -> Self::PK
where
@dutchmartin
dutchmartin / freemono_binary_representation.txt
Created September 17, 2019 20:59
freemono binary representation
00000000: 00101100 00000000 00000000 00000000 01101000 01100101 ,...he
00000006: 01100001 01100100 00000001 00000000 00000000 00000000 ad....
0000000c: 00000011 00000000 00011110 00000000 00010101 00000000 ......
00000012: 11111010 11111111 00011000 00000000 11111010 11111111 ......
00000018: 00000000 00000000 11111010 11111111 00010101 00000000 ......
0000001e: 00010010 00000000 00010000 00000000 00000000 00000000 ......
00000024: 00000000 00000010 00000101 00000101 00000000 00000001 ......
0000002a: 00000000 00000000 00011100 00000000 00000000 00000000 ......
00000030: 01100011 01101101 01100001 01110000 00000001 00000000 cmap..
00000036: 00000000 00000000 00011100 00000000 00000000 00000000 ......
#include "lvgl/lvgl.h"
/*******************************************************************************
* Size: 30 px
* Bpp: 2
* Opts: --font FreeMono.ttf --size 30 -o /home/martijn/CLionProjects/toml-test/data/freemono-30.c --format lvgl --bpp 2 -r 0x20-0x7F
******************************************************************************/
#ifndef FREEMONO-30
#define FREEMONO-30 1
/*!
* Social Share Kit v1.0.7 (http://socialsharekit.com)
* Copyright 2015 Social Share Kit / Kaspars Sprogis.
* Licensed under Creative Commons Attribution-NonCommercial 3.0 license:
* https://github.com/darklow/social-share-kit/blob/master/LICENSE
* ---
*/@font-face{font-family:social-share-kit;src:url(/fonts/vendor/social-share-kit/dist/social-share-kit.eot?f16a83eacf4f1b1f940e4d10eca2c2c5);src:url(/fonts/vendor/social-share-kit/dist/social-share-kit.eot?f16a83eacf4f1b1f940e4d10eca2c2c5?#iefix) format("embedded-opentype"),url(/fonts/vendor/social-share-kit/dist/social-share-kit.woff?186800b93f2def943aaf5e8311c95c78) format("woff"),url(/fonts/vendor/social-share-kit/dist/social-share-kit.ttf?604f6d5079909a09f1eb3224d2752374) format("truetype"),url(/fonts/vendor/social-share-kit/dist/social-share-kit.svg?b9215036f8a009e00d95d29398bad042#social-share-kit) format("svg");font-weight:400;font-style:normal}.ssk:before{display:inline-block;font-family:social-share-kit!important;font-style:normal!important;fo
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,r=Object.getPrototypeOf,o=n.slice,s=n.concat,a=n.push,l=n.indexOf,c={},u=c.toString,f=c.hasOwnProperty,d=f.toString,h=d.call(Object),p={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},m=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,s=(n=n||i).createElement("script");if(s.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,o);n.head.appendChild(s).parentNode.removeChild(s)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,r=Object.getPrototypeOf,o=n.slice,s=n.concat,a=n.push,l=n.indexOf,c={},u=c.toString,f=c.hasOwnProperty,d=f.toString,h=d.call(Object),p={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},m=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,s=(n=n||i).createElement("script");if(s.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,o);n.head.appendChild(s).parentNode.removeChild(s)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"
@dutchmartin
dutchmartin / install-mysql.sh
Created April 29, 2019 18:52
install mysql
wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb && sudo dpkg -i ./mysql-apt-config_0.8.13-1_all.deb && sudo apt update && sudo apt install mysql-server
@dutchmartin
dutchmartin / webpack.js
Created December 24, 2018 10:58
Webpack 4 base config
module.exports = {
mode: "production",
devtool: false,
entry: {
},
output: {
},
optimization: {
@dutchmartin
dutchmartin / dump.txt
Created May 7, 2018 14:38
gone wrong
package avans.model;
import avans.database.Database;
import java.util.LinkedHashMap;
public class Lobby {
/**
* Username of a player.
*/
@dutchmartin
dutchmartin / deploy.sh
Last active April 18, 2018 12:38
deployment script
#!/usr/bin/env bash
######################
## Deployment script #
######################
## arg 1: git tag ##
## arg 2: repo-name ##
######################
# Repo to deploy to:
USER="Yoast-dist"
REPO=$2