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
{ | |
// These are the old commands | |
//"cmd": ["ruby", "$file"], | |
//"cmd": ["/usr/local/bin/ruby", "$file"], | |
"cmd": ["/Users/kiwidev/.rbenv/shims/ruby", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
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
from peewee import * | |
db = PostgresqlDatabase(None) | |
# custom type for postgres Text[] array column | |
class TextArrayField(Field): | |
db_field = 'Text[]' | |
def db_value(self, value): | |
return value |
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
# Start a basic, 4 node, local, ipython cluster, using: | |
# ipcluster start -n 4 | |
# | |
# then run: | |
# ipython parallel_process_images.py | |
# | |
# this example reads in ./test_images/*.jpg | |
# and outputs a bunch of .png files to ./resized_test_images/ |
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
(id="Content\w*") |
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
products = Product.select().where( | |
Product.id << [161,162,163,164,165]).where( | |
~(Product.brand_name >> None) | |
) |
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
#!/bin/sh | |
xfce4-terminal \ | |
-T scratch \ | |
--working-directory=/opt/colors/ \ | |
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate; s . &" bash' \ | |
--tab -T pry \ | |
--working-directory=/opt/colors/ \ | |
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate; cd ./apps ; ./pry_with_models.sh" bash' \ | |
--window -T public_site \ | |
--working-directory=/opt/colors/ \ |
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
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
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
mklink c:\cygwin\home\shaun\.VirtualBox c:\Users\shaun\.VirtualBox | |
mklink "c:\cygwin\home\shaun\VirtualBox VMs" "c:\Users\shaun\VirtualBox VMs" | |
or | |
mklink c:\cygwin64\home\shaun\.VirtualBox c:\Users\shaun\.VirtualBox | |
mklink "c:\cygwin64\home\shaun\VirtualBox VMs" "c:\Users\shaun\VirtualBox VMs" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability] | |
"ShutdownReasonOn"=dword:00000000 |
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
Show hidden characters
{ | |
"atomic_save": false, | |
} |
OlderNewer