This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const STATE_SEARCHING = "STATE_SEARCHING" | |
export const STATE_TOKENIZING_HASHTAG = "STATE_TOKENIZING_HASHTAG" | |
export const STATE_TOKENIZING_MENTION = "STATE_TOKENIZING_MENTION" | |
export const PREFIX_HASHTAG = "#" | |
export const PREFIX_MENTION = "@" | |
export const tokenize = function(text) { | |
let characters = [...text] | |
let state = STATE_SEARCHING | |
let tokens = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import websocket | |
try: | |
import thread | |
except ImportError: | |
import _thread as thread | |
import time | |
import json | |
import ssl | |
import sublime, sublime_plugin, os |
NewerOlder