Instantly share code, notes, and snippets.

View refactor-example.js
/**
* Examples of function and object overriding
* in addition to dynamic dependency injection.
*
* If you want proof this works, just take this gist,
* put it into a file (e.g. "test.js") and then run
* `node test.js' followed by `node test.js new`
*/
/*
View news_upos_cbow_600_2_2018_3c46de41588b18b65cefbd2095a56919_config.json
{"embeddings": [{"metadataPath": "https://gist.githubusercontent.com/akutuzov/9cc096278606cda9f8f97cc5cd8284ec/raw/d6c15a53c9f541b5ed26fd1728b2e25d5a18daac/news_upos_cbow_600_2_2018_3c46de41588b18b65cefbd2095a56919_metadata.tsv", "tensorShape": [600, 12], "tensorPath": "https://gist.githubusercontent.com/akutuzov/3fda631ed488fbdbf47ad4693249162e/raw/b05da8c362f801134a3a9eda5d3bc696dd3a66d3/news_upos_cbow_600_2_2018_3c46de41588b18b65cefbd2095a56919_tensor.tsv", "tensorName": "WebVectors"}]}
View news_upos_cbow_600_2_2018_3c46de41588b18b65cefbd2095a56919_metadata.tsv
word Class
компьютер NOUN
мотоцикл NOUN
транспорт NOUN
париж NOUN
быстрый ADJ
мышь NOUN
машина NOUN
москва NOUN
клавиатура NOUN
View news_upos_cbow_600_2_2018_3c46de41588b18b65cefbd2095a56919_tensor.tsv
-0.0795011892914772 -0.06590796262025833 -0.029847053810954094 0.05610959604382515 -0.024409806355834007 -0.005965723656117916 -0.014625811949372292 0.018172061070799828 0.02478564716875553 -0.0034732671920210123 -0.06267111748456955 3.950823884224519e-05 -0.01361131016165018 -0.015551422722637653 0.008469213731586933 -0.08575449138879776 -0.06954287737607956 0.030709482729434967 0.07390248030424118 0.05282695218920708 -0.024904290214180946 0.03633388504385948 0.014734640717506409 0.055467184633016586 0.09570567309856415 0.08610621839761734 -0.01858583651483059 0.0020226354245096445 0.08251067250967026 -0.05089573562145233 -0.009857228957116604 -0.06481777131557465 -0.05567439645528793 0.05446963757276535 -0.03466019779443741 0.022619130089879036 -0.015201692469418049 -0.050051748752593994 -0.05303388461470604 -0.0749211311340332 -0.028781292960047722 0.07798632234334946 -0.008692354895174503 -0.021747060120105743 0.08889803290367126 -0.017856523394584656 -0.03272585943341255 -0.041894879192113876 0.029807293
View gist:04e9bdcaaa4065ffa82a21cb5bf5108d
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>io.mitter</groupId>
<artifactId>models</artifactId>
<version>0.5.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
View travis_from_binary.md

Install From Binaray and Join Testnet

make sure your os is Ubuntu 16.04 or CentOS 7

download pre-built binaries from release page

mkdir -p $HOME/release
cd $HOME/release

# if your os is Ubuntu
View gist:94d64fc508eea34f5c89fa6fa85c9621
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>io.mitter.android</groupId>
<artifactId>core</artifactId>
<version>0.2.2-SNAPSHOT</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>io.realm</groupId>
View StripNonNumeric.cs
public static string StripNonNumeric(this string value)
{
var newVal = string.Empty;
foreach (var item in value)
{
var intVal = 0;
var res = int.TryParse(item.ToString(), out intVal);
if (res)
{
View factSkill_display.js
/* eslint-disable func-names */
/* eslint-disable no-console */
// IMPORTANT: Please note that this template uses Dispay Directives,
// Display Interface for your skill should be enabled through the Amazon developer console
// See this screenshot - https://alexa.design/enabledisplay
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {