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
| ffmpeg -i Skyline-r5.avi -s 624x352 -b 1000k -vcodec wmv2 -ar 44100 -ab 56000 -ac 2 -y skyline.wmv & |
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
| update udox_posts set post_content=replace(post_content, "http://localhost/UDOX/PortfolioSite/udox/", "/"); |
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
| #!/usr/bin/env python2 | |
| import string | |
| import re | |
| import random | |
| EXCLUDED = ["", "\n", "a","able","about","across","after","all","almost","also","am","among","ive", "an","and","any", "im", "are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"] | |
| CANVAS_SIZE = 600 | |
| HEADER = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html lang="en |
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
| #!/usr/bin/env python2 | |
| import string | |
| import re | |
| import random | |
| EXCLUDED = ["", "\n", "a","able","about","across","after","all","almost","also","am","among","ive", "an","and","any", "im", "are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"] | |
| CANVAS_SIZE = 20 | |
| HEADER = """ | |
| import bpy | |
| bpy.ops.object.select_all() |
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
| #!/bin/bash | |
| DISPLAY=:0.${DISPLAY:1} $1 |
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
| class NoneFilterSpec(ChoicesFilterSpec): | |
| """Filters based on a field being either None or populated """ | |
| def __init__(self, f, request, params, model, model_admin): | |
| super(NoneFilterSpec, self).__init__(f, request, params, model, model_admin) | |
| self.lookup_kwarg = '%s__isnull' % f.name | |
| self.lookup_val = request.GET.get(self.lookup_kwarg, None) | |
| self.lookup_choices = [True, False] | |
| self.lookup_choices.sort() |
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
| class NoneFilterSpec(ChoicesFilterSpec): | |
| """Filters based on a field being either None or populated """ | |
| def __init__(self, f, request, params, model, model_admin): | |
| super(NoneFilterSpec, self).__init__(f, request, params, model, model_admin) | |
| self.lookup_kwarg = '%s__isnull' % f.name | |
| self.lookup_val = request.GET.get(self.lookup_kwarg, None) | |
| self.lookup_choices = [True, False] | |
| self.lookup_choices.sort() |
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
| # Django settings for geoipredirect project. | |
| import os | |
| PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) | |
| DEBUG = True | |
| TEMPLATE_DEBUG = DEBUG | |
| ADMINS = ( | |
| # ('jaymz', 'jaymz@u-dox.com'), | |
| ) |
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
| #!/usr/bin/env sh | |
| echo "CREATE TABLE `basename ${1,,} ${1: -4}` (" | |
| echo " id INTEGER AUTO_INCREMENT," | |
| while read line | |
| do | |
| no_space=${line/ /_} | |
| field_name=${no_space,,} | |
| echo -e " $field_name VARCHAR(50) default NULL," | |
| done < $1 |
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
| if (typeof console == "undefined" || typeof console.log == "undefined") var console = { log: function() {} }; |