I hereby claim:
- I am inkless on github.
- I am inkless (https://keybase.io/inkless) on keybase.
- I have a public key ASDdw7aYnMqFMH2RIpxuQzrpvu-KuU3KscnwlrCSF_-xnAo
To claim this, I am signing this object:
import Ember from 'ember'; | |
import { computed } from '@ember/object'; | |
export default Ember.Component.extend({ | |
ts: computed(function () { | |
return performance.now() | |
}) | |
}); |
I hereby claim:
To claim this, I am signing this object:
/** | |
* unregister | |
* | |
* unregister old directives or filters | |
* | |
* @param {Object.<{name: string, type: string}>[]} declares | |
* @param string module | |
* @returns {undefined} | |
* @example | |
* {name: 'foo', type: 'directive') |
/** | |
* An example to try to call API multiple times | |
*/ | |
'use strict'; | |
const maxTryTimes = 3; | |
const tryTimeInterval = 500; | |
/** | |
* try multiple times to access server API |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<?php | |
ini_set('display_errors', 'On'); | |
$theme_id = $_SERVER['HTTP_HOST'] ? $_REQUEST['theme_id'] : $argv[1]; | |
if (!$theme_id) die("No Theme ID specified!"); | |
$target_url = $_SERVER['HTTP_HOST'] ? $_REQUEST['target'] : $argv[2]; | |
$target_url = $target_url ?: "http://wbpreview.com/previews/"; | |
$index_page = $_SERVER['HTTP_HOST'] ? $_REQUEST['index_page'] : $argv[3]; |
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
import nltk | |
import numpy | |
N = 100 # Number of words to consider | |
CLUSTER_THRESHOLD = 5 # Distance between words to consider | |
TOP_SENTENCES = 5 # Number of sentences to return for a "top n" summary |
// Build msdo.js to the dist directory. Embed date@version. | |
grunt.registerMultiTask( | |
"build", | |
"Concatenate source and build msdo.js to the dist directory. Embed date@version.", | |
function() { | |
// Concat specified files. | |
var compiled = "", | |
name = this.data.dest, | |
src = this.data.src, |
<?php | |
$dir = ''; | |
if (isset($argv[1])) $dir = $argv[1]; | |
if ($_REQUEST['path']) $dir = $_REQUEST['path']; | |
if (!$dir) { | |
echo "Path not specified! Please use `localhost/resizeimage.php?path=.` or `php resizeimage.php {path}`\n";exit; | |
} |