Skip to content

Instantly share code, notes, and snippets.

View chapko's full-sized avatar
🦉

Eugene Chapko chapko

🦉
View GitHub Profile
@chapko
chapko / PKGBUILD
Created May 29, 2023 06:56
Fira Code built with custom features
pkgname=ttf-firacode-nerd-qeteq
_nfver=3.0.1
pkgver=582.ee125da
pkgrel=1
pkgdesc="Fira Code, patched with the Nerd Fonts Patcher and custom features"
arch=('any')
url='https://github.com/tonsky/FiraCode'
license=('custom:OFL')
makedepends=(
@chapko
chapko / test.ts
Created September 13, 2017 14:36
type Result = {} | undefined;
type Fn<TArg> = (value: TArg) => Result;
type MappedFn<TKeys extends string, TArg extends {}> = {
[K in TKeys]: Fn<TArg>;
};
type MappedInline<TKeys extends string, TArg extends {}> = {
[K in TKeys]: (value: TArg) => Result;
};
@chapko
chapko / index.js
Last active February 7, 2017 17:45
var http = require('http');
var ForeverAgent = require('forever-agent');
var server = http.createServer(function (req, res) {
console.log('Server got request', req.url);
res.write(req.url);
// Get time to all async callbacks to be processed
setTimeout(function () {
res.end();
@chapko
chapko / build.sh
Last active November 23, 2016 11:10 — forked from andrew-aladev/build.sh
#!/bin/sh
dir=$(pwd)
pkg="com.example.ThaliTestApp"
activity="$pkg/.MainActivity"
devices=($(adb devices | awk '/\<device\>/ { print $1 }'))
function adb-all {
for device in "${devices[@]}"
diff --git a/test/www/jxcore/runCoordinatedTests.js b/test/www/jxcore/runCoordinatedTests.js
index ab9104d..25dad7a 100644
--- a/test/www/jxcore/runCoordinatedTests.js
+++ b/test/www/jxcore/runCoordinatedTests.js
@@ -64,10 +64,13 @@ var logInstanceOutput = function (data, instanceId) {
var setListeners = function (instance, instanceId) {
instanceLogs[instanceId] = '';
+ var file = require('fs')
+ .createWriteStream('logs/' + instanceId + '.log', 'utf8');
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://gist.github.com/*
// @grant none
// ==/UserScript==
#!/bin/bash
apk="$1"
out="$2"
apksigner sign \
--ks="$HOME/.android/debug-key.keystore" \
--ks-pass "pass:12345678" \
--out="$out" \
"$apk"
'use strict';
function getOverhead() {
var immediate = null;
var overhead = [0, 0];
var latestStart;
function handler() {
var diff = process.hrtime(latestStart);

Keybase proof

I hereby claim:

  • I am chapko on github.
  • I am chapko (https://keybase.io/chapko) on keybase.
  • I have a public key whose fingerprint is 4B6D 90E5 CB8D BDA9 6F7D 5600 BBA7 4BAB DE77 841A

To claim this, I am signing this object:

@chapko
chapko / jquery.ui.knob.js
Created December 2, 2012 14:49
jQuery UI knob
(function($) {
if(!$.fn.rotate){
var style = $('head')[0].style;
var transform = "transform WebkitTransform OTransform msTransform MozTransform".split(" ").filter(function(prop) {
return style[prop] !== undefined;
})[0];
$.fn.rotate = function(deg) {
if(arguments.length) {
return this.each(function(index, el) {