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
Sub loopToFindMinColName() | |
' | |
' Finds the column name of something | |
' | |
' you must give the correct sheet name | |
sheetName = "Vendor Pricing" | |
'This is the columne where minimum is listed | |
minCol = "D" |
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
<?php | |
/* | |
What: mailer script for notifications: | |
Required params under POST: | |
msg | |
sub | |
ret | |
pass | |
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
# the bubble sort | |
l = [1,3, 5, 4, 2, 9, 7, 23, 15, 8, 4] | |
print l | |
loops = 0 | |
length = len(l) | |
while 1: | |
sorted = False | |
i = 0 | |
for x in l: |
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/python | |
# | |
# Simple file renamer- renames all files in a dir. skips directories, keeps extensions. | |
# Takes a full path. | |
# | |
# Some sales person needed this at work for something. | |
# Aaron Decker - [email protected] | |
# MIT License | |
# | |
import os |
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/python | |
# | |
# Dels all files in a dir. | |
# Then, it will touch an empty file for all of the same name!. | |
# | |
# Some sales person needed this at work for something. | |
# Aaron Decker - [email protected] | |
# MIT License | |
# | |
import os |
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 initialize(context): | |
# we are going to use some high volatility tech stocks. | |
context.stocks = [sid(24), sid(1900), sid(5061), sid(3766), sid(13940), sid(20198), sid(27533), sid(40562)] | |
#context.stocks = [sid(3), sid(2), sid(1)]; | |
log.info( context.stocks ) | |
#context.stocks = (sid(5729), sid(1637), sid(27558), sid(2190), sid(35920), sid(32146), sid(35902)) | |
context.bought = False | |
context.max_notional = 1000000.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
/** | |
* Some constants we use to choose sorting methods. | |
*/ | |
public static const SORT_BY_DATE_START:String = "DATE_START"; | |
public static const SORT_BY_ID_ASC:String = "ID_ASC"; | |
/** | |
* Example function that calls the quick sort on a vector of some beans | |
*/ |
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
<h3> | |
Drop us a line: | |
</h3> | |
<br /> | |
<table class="tableForm"> | |
<tr> | |
<td class="label">Your Email:</td> | |
<td class="component"> | |
<input type="text" id="input01" class="component-input" /> |
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
SELECT | |
count(*) as num_views, mymodels_pasteview.paste_id as paste_id | |
FROM | |
mymodels_pasteview, mymodels_pastemain | |
WHERE | |
mymodels_pastemain.active = 1 | |
AND | |
mymodels_pastemain.id = mymodels_pasteview.paste_id | |
AND | |
mymodels_pastemain.id |