Skip to content

Instantly share code, notes, and snippets.

View sanusart's full-sized avatar

Sasha Khamkov sanusart

View GitHub Profile
@sanusart
sanusart / create_training_data.py
Last active August 29, 2019 20:44
Create training data #spacy #nlp
import spacy
from spacy.matcher import Matcher
from spacy.lang.en import English
nlp = English()
matcher = Matcher(nlp.vocab)
# create some patterns and add to matcher
pattern1 = [{"LOWER": "iphone"}, {"LOWER": "x"}]
pattern2 = [{"LOWER": "iphone"}, {"IS_DIGIT": True, "OP": "?"}]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sanusart
sanusart / gist:daff045ab8c94b5b89428d1b452344ca
Last active October 12, 2018 10:53 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup #emoji #github

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sanusart
sanusart / lodash-fp-documentation.md
Created April 19, 2017 07:14 — forked from jfmengels/lodash-fp-documentation.md
Generated docs for Lodash/fp. Help make them better at https://github.com/jfmengels/lodash-fp-docs
@sanusart
sanusart / index.html
Last active December 5, 2015 18:47 — forked from anonymous/index.html
sig
<style id="jsbin-css">
#TABLE_1 {
cursor: move;
height: 82px;
text-align: left;
width: 470px;
perspective-origin: 235px 41px;
transform-origin: 235px 41px;
border-spacing: 0px 0px;
font: normal normal normal normal 16px/normal Helvetica, Arial, sans-serif;
@sanusart
sanusart / gist:96e7bf2695683f64088a
Last active August 19, 2018 04:59 — forked from lsauer/gist:2907369
Google Chrome special pages for memory, debug, resources, profiling, downloads...

lsauer.com


Overview of all chrome:// pages.

  • List by calling chrome://about/
  • Following is a direct dump from the 'about' page for reference

List of Pages as per v20.xxx

@sanusart
sanusart / preserving-history.md
Last active January 27, 2018 16:58 — forked from dannyroberts/preserving-history.md
rename whole directories while preserving the git history #git

Did you know...

...that git lets you move and rename whole directories while preserving the git history of those files?

If you run

git read-tree --prefix=$NEW_PATH -u master:$OLD_PATH
rm -rf $OLD_PATH
# ...you probably want to change some imports...
git commit -m $MESSAGE
@sanusart
sanusart / 1-node-webkit-cheatsheet.sh
Last active August 29, 2015 14:18 — forked from LeCoupa/1-node-webkit-cheatsheet.sh
node webkit cheatsheet #nw #node-webkit #nwjs
# Node-WebKit CheatSheet
# Download: https://github.com/rogerwang/node-webkit#downloads
# Old Versions: https://github.com/rogerwang/node-webkit/wiki/Downloads-of-old-versions
# Wiki: https://github.com/rogerwang/node-webkit/wiki
# How: https://github.com/rogerwang/node-webkit/wiki/How-node.js-is-integrated-with-chromium
# 1. Run your application.
# https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps
@sanusart
sanusart / 01.configure
Last active October 6, 2018 20:08 — forked from hanxue/01.configure
gist with files more than 1M of size #big
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes