This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// exposed jsbeautifier options | |
"indent_with_tabs": false, | |
"preserve_newlines": true, | |
"max_preserve_newlines": 4, | |
"space_in_paren": false, | |
"jslint_happy": false, | |
"brace_style": "collapse", | |
"keep_array_indentation": true, | |
"keep_function_indentation": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $UID -ne 0 ] ; then | |
printf "Usage: sudo ./tvunblock.sh\n" | |
exit | |
fi | |
SERVERS="nameserver 46.101.149.135\nnameserver 46.101.36.120" | |
OLD="$(cat /etc/resolv.conf)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Drive Number of Files | |
// @namespace dkdscripts | |
// @version 1.0 | |
// @description Shows how many items are displayed currently in drive (updates 1/s) | |
// @author dkd | |
// @downloadURL https://gist.github.com/mold/d30f5650273e43718530/raw/9dbb8d3949945e278563b01d40a277a72506f58f/drive-num-files.user.js | |
// @match https://drive.google.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Converts a DataView that represents a 4 byte float (IEEE-11073) | |
* to an actual float. Useful for example when reading temperature | |
* from a Bluetooth thermometer :) | |
* | |
* The DataView buffer should contain at least 4 bytes: | |
* | |
* [b0, b1, b2, b3] | |
* ^ ^ ^ └---------- Exponent | |
* └---└---└------- Will become the mantissa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineLatest, noop, Observable } from 'rxjs'; | |
import { debounceTime, map, shareReplay, startWith, tap } from 'rxjs/operators'; | |
export interface OperatorDict<X> { | |
[key: string]: Observable<X> | [Observable<X>, X]; | |
} | |
/** | |
* Extracts the type `T` of an `Observable<T>` | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nextRow(i) { | |
var rows = document.querySelectorAll("#tabAllGrid .row-wrapper"); | |
console.log(i); | |
// if(i>2){return;} | |
var cells = Array.from(rows).map((r) => | |
r.querySelector(".gridCell:first-child .cell-wrapper") | |
); |