Skip to content

Instantly share code, notes, and snippets.

View babylouie28's full-sized avatar
🎯
Focusing

MeShell babylouie28

🎯
Focusing
  • 06:21 (UTC -12:00)
View GitHub Profile
@babylouie28
babylouie28 / hn_seach.js
Created February 3, 2020 18:02 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments),
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {
@babylouie28
babylouie28 / libmagic_example.c
Created January 31, 2020 22:50 — forked from vivithemage/libmagic_example.c
libmagic.h example
#include <stdio.h>
#include <magic.h>
int main(void)
{
char *actual_file = "/file/you/want.yay";
const char *magic_full;
magic_t magic_cookie;
/* MAGIC_MIME tells magic to return a mime of the file,
@babylouie28
babylouie28 / rejected.json
Created January 29, 2020 04:14 — forked from blacksun1/rejected.json
Webhooks
{
"code": "REJECTED",
"rejectionMessage": "Webhook rejection message to be displayed to visitor"
}
snippet oo outline-offset
outline-offset: ${1}
snippet le left
left: ${1}
snippet atf animation-timing-function
animation-timing-function: ${1}
snippet lst list-style-type
list-style-type: ${1}
snippet cw column-width
column-width: ${1}