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
{ | |
"scope": "anaconda.outline.illegal", | |
"foreground": "#dc312e80" | |
}, | |
{ | |
"scope": "anaconda.underline.illegal", | |
"foreground": "#dc312e" | |
}, | |
{ | |
"scope": "anaconda.outline.warning", |
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
{ | |
"pep8_max_line_length": 120, | |
// http://damnwidget.github.io/anaconda/IDE/#look-feel | |
//Add the underline rules to your colorscheme | |
//Look under Solarized - Light and CTRL + F for anaconda: | |
//https://github.com/SublimeTextIssues/Core/issues/1370 |
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
package main | |
import "fmt" | |
func main() { | |
for i := 1; i <= 100; i++ { //Start at 1 to avoid 0 | |
var result = "" | |
if i%3 == 0{ | |
result = "Fizz" |
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
""" | |
Tools for creating a CA cert and signed server certs. | |
Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py | |
The mk_temporary_xxx calls return a NamedTemporaryFile with certs. | |
Usage ; | |
# Create a temporary CA cert and it's private key | |
cacert, cakey = mk_temporary_cacert() |
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 os | |
import SOAPpy | |
import sys | |
sys.path.append(os.path.join(os.path.dirname(__file__), "../lib")) | |
import appscale_info | |
import constants | |
# soap server located at appscale/AppDB/soap_server.py | |
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
1 #!/usr/bin/python | |
2 # -*- coding: utf-8 -*- | |
3 import MySQLdb as mdb | |
4 import sys | |
5 | |
6 try: | |
7 con = mdb.connect('localhost', 'bitsync', 't2dKHnuhXsMKEhN5', 'cupcake') | |
8 cur = con.cursor() | |
9 cur.execute("UPDATE cup_show SET bitsync_rw_secret = 'Test-rw' WHERE id=2;") | |
10 cur.execute("UPDATE cup_show SET bitsync_ro_secret = 'Test-ro' WHERE id=2;") |
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
Vent Normalization makes every bodies voice the exact same volume. In essence, you won't blow your ear's out or have difficulty hearing people. | |
____________________ | |
Here's how: | |
- Go to Setup | |
- Enable Direct Sound |
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
(function() {if (!window.GoogleTyFxhY || typeof window.GoogleTyFxhY.push !== 'function') {window.GoogleTyFxhY = [];}window.GoogleTyFxhY.push({'_scs_': 'B_1aNDno3VvzyGoSAMefdmPADAAAAADgB4AQC','_bgu_': 'https://pagead2.googlesyndication.com/bg/CbzsU2oByTYt-pLbi77EkWqPp7C_PzuvYb1kHWsmKzc.js','_bgp_': 'sF5UVdElsv8Pfl4IytaucDEyW6Mlg5mTUhT/Xj6o6Gax6Efst8K0bH8k5Da8qfToL3yBxnqA0rlevj/M4mTzQguXjv9J+4jTbpAc1FKvPc4anREFIPp3IV/V+I9Zb58WlOhJhUwH7YJ3vCfgTCmsHWWVHSPKwVTnLrM7+AsGs8IIBctWmbSTgxm1tBT9W2fmvDySQJDGhQ8gL3afBeaSVq5SrRn+wP7kqHEnPlszzU0NYhCq7yHsC+qTLXdKyT6AL3agqCqPJkq9rI73Z4ICM8hk46tj2SOS7lu4+E4aHnP36wR5KdETrQ1cd7BVhmbvtGfa390kNjmnkfaW1eIKzXXfyHsOCNtTZn8lOq82v581mWDpKtdubfZFg4Jt7xvKDQt4KM14S4buqBEpoiKRmhRwKUS30qm8tUDpm/Rok+vQOKCJO5MrPgzU3DGjBuT5iNELLFohQlcd5YHJhGpbP32lDLTR4sMBTIcLy6N7f65CtIlDd+Oady/iHXGI5tXoYnFmfP8FDNkpFSEjqfwTivXFHL2W9wWftU/mvP/CqKk6/QhLQDMtJH/tDuyGrO5PzeRfF7PRRU4uy/35bar5BXfgTWGgEIzjnghSTFYWIZyguTRzMeZE7ciAeCWf6qMqKx0AaI/cpKKhRe82ES06vDNJuUL6uUPtmqHUCe7nYcoiIJhLjdnNjYyssKk8wxLCcf0tIvvL77JlaQH3jzsE |
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
<?php | |
$Session = Gdn::Session(); | |
$userid = $Session->UserID; | |
print "Information for user $userid<br>"; | |
if ($Session->IsValid()) { | |
$RoleModel = new RoleModel(); | |
$UserRoles = $RoleModel->GetByUserID(Gdn::Session()->UserID); | |
$IsPremium=FALSE; | |
foreach ($UserRoles as $UserRole){ |
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
def _pickle_method(m): | |
# http://stackoverflow.com/questions/25156768/ | |
if m.im_self is None: | |
return getattr, (m.im_class, m.im_func.func_name) | |
else: | |
return getattr, (m.im_self, m.im_func.func_name) | |
copy_reg.pickle(types.MethodType, _pickle_method) | |
class UsefulWorkThings(object): |
NewerOlder