Skip to content

Instantly share code, notes, and snippets.

@zoutepopcorn
zoutepopcorn / arch-linux-gnome-install
Created September 22, 2019 17:46 — forked from thacoon/arch-linux-gnome-install
Install a minimal gnome setup and some more useful things
# Install Gnome and some other useful thins
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# And based on https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger
# I have just copied commands from https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger#Weitere_notwendige_Dienste
# It's just to have it with one view after doing a [fresh installation](https://gist.github.com/thacoon/05d5a39606ab554455d6713e8a714b2c)
# Some useful services
pacman -S acpid ntp dbus avahi cups cronie
@zoutepopcorn
zoutepopcorn / serv.ino
Last active September 10, 2019 13:07
servo arduino
/* Servo - Sweep
* by BARRAGAN <http://barraganstudio.com>
* This example code is in the public domain.
*
* modified 28 May 2015 by Michael C. Miller
* modified 8 Nov 2013 by Scott Fitzgerald
*
* http://arduino.cc/en/Tutorial/Sweep
* https://github.com/esp8266/Arduino/blob/master/libraries/Servo/examples/Sweep/Sweep.ino
<html>
<title>title</title>
<body>
<div id="mijnFooter"></div>
<script>
document.body.innerHTML += '<div>div inject</div>';
fetch('http://127.0.0.1:35741/footer.html')
.then(function(response) {
return response.text();
})
@zoutepopcorn
zoutepopcorn / main.cpp
Last active June 10, 2019 19:38
wifi test
#include "ESP8266WiFi.h"
#include "FS.h"
void setup() {
Serial.begin(115200);
SPIFFS.begin();
WiFi.mode(WIFI_STA);
WiFi.disconnect();
Serial.println("--->");
delay(100);
<template>
<div>
<!--{{ name }}-->
<br>
<div v-for="(avatar, i) in avatars">
<v-avatar :key="i" size="100px" color="grey lighten-4">
<img :src="avatar.url" class="border" :class="getClassName(avatar.updated)">
</v-avatar>
<br>
<!--seconds: {{ avatar.updated }}-->
@zoutepopcorn
zoutepopcorn / tempermonkey kleuren overheed
Last active March 15, 2019 13:19
overheid kleuren online
// ==UserScript==
// @name Kleuren rijksoverheid
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match https://www.rijkshuisstijl.nl/basiselementen/*
// @grant GM_setClipboard
// ==/UserScript==
var kleuren
@zoutepopcorn
zoutepopcorn / layer.js
Last active January 21, 2019 08:05
clean circle
map.addSource("mysource", mySource)
map.addLayer({
"id": "hunter-circle",
"type": "circle",
"source": "mysource",
"paint": {
"circle-opacity": ['get', 'opacity'],
"circle-stroke-color": ['get', 'stroke'],
"circle-color": ['get', 'color'],
@zoutepopcorn
zoutepopcorn / main.dart
Created August 12, 2018 09:42 — forked from StrykerKKD/main.dart
Web scraping with Dart
import 'package:http/http.dart' as http;
import 'package:html/parser.dart' as parser;
import 'package:html/dom.dart';
main() async {
http.Response response = await http.get('https://news.ycombinator.com/');
Document document = parser.parse(response.body);
document.getElementsByTagName('a').forEach((Element element){
@zoutepopcorn
zoutepopcorn / index.html
Created July 30, 2018 20:16 — forked from arikanmstf/index.html
Service Worker Communication
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"/>
<meta name="google" content="notranslate"/>
<meta name="msapplication-tap-highlight" content="no"/>
<meta http-equiv="cache-control" content="no-store"/>
<meta http-equiv="expires" content="0"/>
Vue.prototype.$socket = socket