This file contains hidden or 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
Show hidden characters
To create a Sphinx sublime build, open Sublime, Go to Tools --> Bulid system --> New build system and type in the following code. | |
I have only tried it on windows so far and it worked. | |
Make sure you have sphinx installed and change the path to the script. may be python27 instead of python34 | |
{ | |
"cmd": ["c:/Python34/Scripts/sphinx-build.exe", "-b", "html", "$filedir", "_build/html"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "text.restructuredtext" | |
} |
This file contains hidden or 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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
Actionscript: source.actionscript, source.actionscript.2 | |
Active4D: source.active4d | |
Active4D_Html: text.html.strict.active4d | |
Active4D_Ini: text.active4d-ini | |
Active4D_Library: source.active4d.library | |
Ada: source.ada | |
Antlr: source.antlr | |
Apache: source.apache-config |
This file contains hidden or 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
{ | |
"cmd": ["javac '$realpath$file' && java $file_base_name && rm *.class"], | |
"selector": "source.java", | |
"shell": true, | |
"variants": [ | |
{ | |
"name": "JavaDoc", | |
"cmd": ["mkdir documentation && javadoc -d documentation *.java"] | |
}, |
This file contains hidden or 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
{ | |
"cmd": ["qmake -project && subl *.pro"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.cpp", | |
"shell": true, | |
"variants": [ | |
{ |
This file contains hidden or 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
{ | |
"cmd": ["sqlite3 < $file_base_name"], | |
"selector": "source.sql", | |
"shell": true, | |
"variants": | |
[ | |
{ | |
"name": "With .sql", | |
"cmd": ["sqlite3 < $file"] |
This file contains hidden or 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
1: tcpmux | |
7: echo | |
9: discard | |
11: systat | |
13: daytime | |
15: netstat | |
17: qotd | |
18: msp | |
19: chargen | |
20: ftp-data |
This file contains hidden or 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
def unicodetoascii(text): | |
TEXT = (text. | |
replace('\\xe2\\x80\\x99', "'"). | |
replace('\\xc3\\xa9', 'e'). | |
replace('\\xe2\\x80\\x90', '-'). | |
replace('\\xe2\\x80\\x91', '-'). | |
replace('\\xe2\\x80\\x92', '-'). | |
replace('\\xe2\\x80\\x93', '-'). | |
replace('\\xe2\\x80\\x94', '-'). |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import codecs | |
import cStringIO | |
import csv | |
import json | |
import sys | |
""" | |
Convert Django json datadump fields into csv. |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Fragment> | |
<UI Id="CustomUI_Login"> | |
<Dialog Id="LoginDlg" Title="!(loc.InstallDirDlg_Title)" Width="370" Height="270" NoMinimize="no"> | |
<Control Id="NameLabel" Type="Text" X="75" Y="113" Width="100" Height="15" TabSkip="no" Text="&User Name:" /> | |
<Control Id="NameEdit" Type="Edit" X="75" Y="125" Width="220" Height="18" Property="LogonUser" Text="{80}" /> | |
<Control Id="PasswordLabel" Type="Text" X="75" Y="150" Width="100" Height="15" TabSkip="no" Text="&Password:" /> | |
<Control Id="PasswordEdit" Type="Edit" X="75" Y="162" Width="220" Height="18" Property="PASSWORD" Password="yes" /> |
This file contains hidden or 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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import DesiredCapabilities | |
from selenium.webdriver.common.proxy import Proxy, ProxyType | |
import time | |
co = webdriver.ChromeOptions() | |
co.add_argument("log-level=3") | |
co.add_argument("--headless") |
OlderNewer