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
// Works | |
save({ | |
success: function() { | |
setTimeout(function() { | |
location = url; | |
}, 1000); | |
} | |
}); | |
// Throws 10004 |
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
#!/usr/bin/python | |
# Filename: tictactoe.py | |
import sys | |
import fnmatch | |
import random | |
def _start(): | |
global picindex | |
picindex=1 |
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 threading | |
from queue import Queue | |
def worker(): | |
while True: | |
item = q.get() | |
do_work(item) # Do shit here | |
q.task_done() | |
q = Queue() |
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 sublime, sublime_plugin | |
class SearchScriptReferenceCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
first_s = self.view.sel()[0] | |
data = self.view.substr(first_s) | |
test(data) | |
def test(data): |