Skip to content

Instantly share code, notes, and snippets.

@jahson
jahson / keybase.md
Last active July 17, 2019 16:11
Keybase

Keybase proof

I hereby claim:

  • I am jahson on github.
  • I am jahson (https://keybase.io/jahson) on keybase.
  • I have a public key ASBivEFCB6BeLR5XXXNga4cNPyTaNek2NQ1OIa6N8KypaQo

To claim this, I am signing this object:

declare namespace I18NextLocalStorageBackend {
interface BackendOptions {
prefix?: string; // prefix for stored langs
expirationTime?: number;
versions: any;
}
type LoadCallback = (error: any, result: string | false) => void;
}
declare class I18NextLocalStorageBackend {
constructor(
declare namespace I18NextChainedBackend {
interface BackendOptions {
backends?: Array<any>;
backendOptions?: Array<any>;
}
type LoadCallback = (error: any, result: string | false) => void;
}
declare class I18NextChainedBackend {
constructor(services?: any, options?: I18NextChainedBackend.BackendOptions);
init(options?: I18NextChainedBackend.BackendOptions): void;
@jahson
jahson / app.js
Created January 20, 2016 18:02 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@jahson
jahson / gesture.html
Created August 1, 2011 18:49
Pinch (and possibly swipe) gesture detection test
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Shower</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=500, user-scalable=no">
<style>
BODY {
background:#CCC;
--- Portfile 2010-08-10 23:35:22.000000000 +0900
+++ Portfile_new 2010-08-10 23:12:32.000000000 +0900
@@ -152,6 +152,13 @@
}
}
+variant fpm description {Add FPM binary} {
+ depends_lib-append \
+ port:libevent
+ configure.args-append \
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<!-- Online here: http://ejohn.org/files/bugs/isObjectLiteral/ -->
<title>isObjectLiteral</title>
<style>
li { background: green; } li.FAIL { background: red; }
iframe { display: none; }
</style>