Skip to content

Instantly share code, notes, and snippets.

View thibmaek's full-sized avatar
🐹
Currently coding a lot in Go

Thibault Maekelbergh thibmaek

🐹
Currently coding a lot in Go
View GitHub Profile
@addyosmani
addyosmani / 12-days.js
Last active February 3, 2016 18:31
12 Days of Christmas in ES2015 - paste this into your DevTools console!
// adapted from https://tonicdev.com/n3dst4/twelve-days-of-emoji
// full credit to n3dst4. I just rewrote this to be browser developer tools friendly.
const pressies = [
"🐦🍐🌳",
"🐢🐦",
"🇫🇷🐔",
"📞🐦",
"💛💍",
"🐦🍳 ",
"🐦🏊",
@geoffreydhuyvetters
geoffreydhuyvetters / README.md
Last active May 10, 2016 15:52
forcing syntax highlighting in Atom

You can force syntax highlighting on files in Atom by using customFileTypes in config.cson

"*":
  core:
    customFileTypes:
      "source.json": [
        ".eslintrc"
        ".babelrc"
 ]
@GertjanReynaert
GertjanReynaert / init.coffee
Last active May 23, 2017 07:48
Atom sync settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@anaisbetts
anaisbetts / example.ts
Created August 26, 2018 20:44
RxJS + Home Assistant
import { create } from './websocket-ha';
const homeAssistant = create('http://localhost:8123');
homeAssistant.connect();
await homeAssistant.auth("my secret password");
// Make API calls
console.log(await homeAssistant.call({type: 'get_config'}));
@kevinmeyvaert
kevinmeyvaert / useScrollIntoView.tsx
Created January 15, 2019 11:33
Scroll node to center React Hook
const useScrollIntoView = (condition: boolean) => {
const ref = React.useRef<HTMLDivElement | null>(null);
React.useEffect(() => {
if (condition && ref.current) {
ref.current.scrollIntoView({
behavior: 'smooth',
block: 'center',
inline: 'center',
});
}
@thibmaek
thibmaek / slacktheme.md
Last active June 18, 2019 19:24
Slack Color Schemes

Kimbie

#F3E3CD,#F3E3CD,#F3951D,#DA3D61,#F26328,#183E1C,#DA3D61,#F26328 screen

Monokai

#222222,#2F2F2F,#F92772,#FFFFFF,#A6E22D,#FFFFFF,#66D9EF,#BE84F2 screen

Juice Bar

#86A34E,#94AF63,#FFFFFF,#6D8B42,#94AF63,#FFFFFF,#FFB10A,#DFA044

@ngryman
ngryman / em.scss
Created March 3, 2013 19:03
sass px to em mixin
// http://viljamis.com/blog/2013/prototyping-responsive-typography/?utm_source=Responsive+Design+Weekly&utm_campaign=76e7785581-Responsive_Design_Weekly_046&utm_medium=email
$browser-context: 16; // Default
@function em($pixels, $context: $browser-context) {
@return #{$pixels/$context}em
}
@brahmlower
brahmlower / koel-installation-docs_debian8.md
Last active June 8, 2021 09:03
This is installation documentation for installing Koel on Debian 8.

Installation on Debian 8

This is installation documentation for installing Koel on Debian 8.

Install Dependancies

Most packages can be installed via apt-get.

user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl

Composer

// by d whyte
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@0xabad1dea
0xabad1dea / severscam.md
Last active July 12, 2021 01:32
Sever Scam

The Scammiest Scam To Yet Anonymity Scam

I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)

This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.

Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –