This file contains hidden or 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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
#toolbar-menubar { | |
display: none !important; | |
} | |
/* {{{ remove left-most drag space */ | |
/* | |
.titlebar-spacer[type="pre-tabs"], .titlebar-placeholder[type="pre-tabs"] { | |
display: none !important; |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <linux/input.h> | |
#include <linux/uinput.h> | |
void emit(int fd, int type, int code, int val) | |
{ |
This file contains hidden or 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 | |
# tuna mirror, see https://mirrors.tuna.tsinghua.edu.cn/help/llvm/ | |
# LLVM_REPO_ROOT=https://git.llvm.org/git | |
LLVM_REPO_ROOT=https://mirrors.tuna.tsinghua.edu.cn/git/llvm | |
LLVM_TREE_DIR=$HOME/.local/lib/llvm-tree | |
LLVM_BUILD_DIR=$HOME/.local/lib/llvm-build | |
LLVM_INSTALL_DIR=$HOME/.local/lib/llvm |
This file contains hidden or 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 { readFileSync, writeFileSync } from "fs"; | |
function decodeSiteD(fileContent: Buffer) { | |
const [ _, content, timestamp ] = fileContent.toString().split('::'); | |
const sample = content | |
.split('') | |
.filter((_, idx) => idx % 2 == 0) | |
.join(''); |
This file contains hidden or 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
// npm i gulp gulp-watch gulp-mocha gulp-batch | |
var gulp = require('gulp'); | |
var mocha = require('gulp-mocha'); | |
var batch = require('gulp-batch'); | |
gulp.watch(['test/**', 'lib/**'], batch(function (events, cb) { | |
return gulp.src(['test/*.js']) | |
.pipe(mocha({ reporter: 'list' })) | |
.on('error', function (err) { |