Skip to content

Instantly share code, notes, and snippets.

@leiserfg
leiserfg / diversity_notification_driver.coffee
Created July 3, 2016 03:10
Notification driver for cycle-diversity implemented in coffeescript.
notificationDriver = (sink$, runSA)->
{observer, stream} = runSA.makeSubject()
handler = (event)-> observer.next event
showNotification = (content)->
show = ->
notification = new Notification(content.title, content)
notification.onclick = notification.onerror = handler
@leiserfg
leiserfg / PKGBUILD
Last active January 13, 2018 02:57
graphql-playground-bin PKGBUILD
# Maintainer: leiserfg <leiserfg g-mail>
pkgname=graphql-playground-bin
name=graphql-playground
pkgver=1.3.23
pkgrel=1
pkgdesc="GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)"
arch=('x86_64')
url="https://github.com/graphcool/graphql-playground"
//la dirección absoluta de ffmpeg
//
ffmpeg="/usr/bin/ffmpeg";
//extension de las imagenes
//
//
ext = ".png";
import microcontroller
from kmk.keys import KC, make_key
from kmk.handlers.stock import passthrough
from kmk.handlers.sequences import send_string
def type_temp(*args, **kwargs):
temp = microcontroller.cpu.temperature
print(temp) #print to serial console
keyboard.process_key(send_string(repr(temp)), True) #type it on keyboard
keyboard.process_key(send_string(repr(temp)), False)
@leiserfg
leiserfg / meet.js
Created May 22, 2023 10:17
Fork of Google Meet Auto Leave that works in firefox
// ==UserScript==
// @name Google Meet Auto Leave
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Allows you to leave meets when others are leaving themselves.
// @author SaberSpeed77, l0st_idiot
// @match https://meet.google.com/*-*
// @icon https://www.mediafire.com/convkey/6b57/sd3demt1u3y6mx19g.jpg
// @grant none
// @license MIT