Skip to content

Instantly share code, notes, and snippets.

View Kreijstal's full-sized avatar
↗️

Kreijstal Kreijstal

↗️
View GitHub Profile
@Kreijstal
Kreijstal / tts.user.js
Created June 16, 2020 20:51
change audio device tts
//This is to use here https://tts.cyzon.us/files/playground.html
//you have to use https
navigator.mediaDevices.getUserMedia({audio:{deviceId:undefined}}).then(()=>{navigator.mediaDevices.enumerateDevices().then(a=>console.log(a[9]));
var b=document.getElementById("result-audio");
b.setSinkId("communications");
b.play()
})
@Kreijstal
Kreijstal / atomicwrites.data
Last active March 15, 2019 07:07
Python wtf lol
/*
* MathQuill master http://mathquill.com
* by Han, Jeanine, and Mary [email protected]
*
* This Source Code Form is subject to the terms of the
* Mozilla Public License, v. 2.0. If a copy of the MPL
* was not distributed with this file, You can obtain
* one at http://mozilla.org/MPL/2.0/.
*/
@font-face {
/**
* The main bootstrap script for loading pyodide.
*/
var languagePluginLoader = new Promise((resolve, reject) => {
// This is filled in by the Makefile to be either a local file or the
// deployed location. TODO: This should be done in a less hacky
// way.
var baseURL = self.languagePluginUrl || 'https://iodide.io/pyodide-demo/';
baseURL = baseURL.substr(0, baseURL.lastIndexOf('/')) + '/';
@Kreijstal
Kreijstal / wg.gesucht.js
Last active March 10, 2019 19:08
wg gescuht
function parseDate(input) {
var parts = input.match(/(\d+)/g);
// note parts[1]-1
return new Date(parts[2], parts[1] - 1, parts[0]);
}
function parse(off) {
var OmeterMoneyText = off.children[0].children[0].children[0].children[1].innerText.trim();
var Ohref = off.children[0].children[0].children[1].children[0].children[0].children[0].href;
var Otitle = off.children[0].children[0].children[1].children[0].children[0].children[0].innerText.trim();
[
{
"name": "Start",
"initial": true,
"content": "Ding Dong! <br>\n\n\n\n![](https://dl.myket.ir/newresizing/resize/medium/png/icon/703419b4-869f-4ad1-a762-1b7a2bbe8298_.png)\n\n\"Oh, the doorbell. What a crazy dream I had. <br>\n\n\"Hello! I have a package for you. Please sign here. <br>",
"events": {
"Sign package!": "package signing",
"Don't sign package": "name checking"
}
},
@Kreijstal
Kreijstal / Usefull.nb
Last active February 24, 2018 16:21
Mathematica and fun!
(*So sometimes I just want to show something very fast and I want for mathematica to do it for me, so after tryng very hard I came up with this*)
(*Previews and evalueates an expression*)
preview[x_] :=
TraditionalForm[
Row[{TraditionalForm[HoldForm[x]], "=",
x}]]; SetAttributes[preview, HoldFirst]
a = {6, 3, 0};
b = {9, 6, 0};
@Kreijstal
Kreijstal / README.md
Created December 5, 2017 17:48 — forked from evandrix/README.md
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
@Kreijstal
Kreijstal / A New Horizons.md
Last active August 13, 2018 16:45
A small journal about... a crush. About friendship, and about life.

08/06/2018

Hello, so this is me, some guy. A new guy, I guess. This time I just remembered I left these notes and wanted to update, I've been using it as some sort of coping mechanism, I suppose always writing on them when something particularly terrible happened to me I guess, I've learned a lot about myself.. and about people, more than I could've ever imagined, the world is absolutely different, everything feels different, and I notice like way more things that I used to. But I'm still sort of a social retard, not so much like I was once was, but I still have some kind of issues here and there. And I've been using self-inspection, and analizing in order to figure out, well, how to achieve my goals. I've actually become busy, so I can't dedicate that much writing this. AND THAT'S TOTALLY FINE! Update: HOLY SHIT READING THIS IS SO MUCH CRINGE, KILL ME. It feels super cringy reading it, mainly because I'm aware of the mistakes I've done in the past, the false assumptions I took, and it's unbelievable how