Skip to content

Instantly share code, notes, and snippets.

View florestankorp's full-sized avatar
🇳🇱
Frontend Dev

Florestan Korp florestankorp

🇳🇱
Frontend Dev
View GitHub Profile
/*! debug.css | MIT License | zaydek.github.com/debug.css */
*:not(path):not(g) {
color: hsla(210, 100%, 100%, 0.9) !important;
background: hsla(210, 100%, 50%, 0.5) !important;
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
box-shadow: none !important;
}
@abbazabacto
abbazabacto / form-builder-typed.ts
Last active March 20, 2022 13:17
Typed Form Builder
// extended upon: https://ruanbeukes.net/Angular-Typesafe-Reactive-Forms/
import { Injectable } from '@angular/core';
import { AbstractControl, FormArray, FormControl, FormGroup, ValidatorFn, AsyncValidatorFn, FormBuilder } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
type PropertyFn<T, R> = (val: T) => R;
interface AbstractControlTyped<T> extends AbstractControl {
readonly value: T;
<!DOCTYPE html>
<html>
<head><title>SOUND</title></head>
<body>
<div>Frequence: <span id="frequency"></span></div>
<script type="text/javascript">
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var oscillatorNode = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
@samrocketman
samrocketman / libimobiledevice_ifuse_Ubuntu.md
Last active January 11, 2024 22:47
On Ubuntu 16.04, since iOS 10 update, libimobiledevice can't connect to my iPhone. This is my attempt to document a fix.

Why this document?

I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).

The solution is to compile libimobiledevice and ifuse from source.

Audience

Who is this guide intended for?

@SteveBate
SteveBate / struct_to_bytes.go
Created October 2, 2015 14:32
Example of converting a struct to a byte slice, compressing with gzip, and saving to file followed by the reverse process back to a struct
package main
import (
"bytes"
"compress/gzip"
"encoding/gob"
"fmt"
"io/ioutil"
"log"
"os"
@staltz
staltz / introrx.md
Last active April 29, 2024 09:25
The introduction to Reactive Programming you've been missing
@lnznt
lnznt / sample-escape_sequence.rb
Created May 12, 2012 01:10
[sample] terminal escape sequence (Ruby)
#!/usr/bin/env ruby
# -*- coding: UTF-8 -*-
puts "\e[0m" "escape sequence(0m)" "\e[m" # RESET or NORMAL
puts "\e[1m" "escape sequence(1m)" "\e[m" # BRIGHT or BOLD
puts "\e[2m" "escape sequence(2m)" "\e[m"
puts "\e[3m" "escape sequence(3m)" "\e[m"
puts "\e[4m" "escape sequence(4m)" "\e[m" # UNDERLINE
puts "\e[5m" "escape sequence(5m)" "\e[m"
puts "\e[6m" "escape sequence(6m)" "\e[m"