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
/** | |
+ \brief readUsers | |
+ | |
+ This function will return all user objects to the client | |
+ | |
+ \author Salvatore D'Agostino | |
+ \date 2012-11-05 20:47 | |
+ \param response The response to return to the client | |
+ \param client (PSQL) PSQL client object | |
+ |
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 | |
/** | |
+ \brief convertArrayToDictionary | |
+ | |
+ This function will take a 2-dimensional array with 2 keys in each index and convert it to a key-value pair array | |
+ | |
+ \author Salvatore (Gimli) D'Agostino | |
+ \date Dec-13-2012 | |
+ \param array (ARRAY) The array to convert (Must have 2 keys for every index) | |
+ \param key (STRING) The key of the key value (In the array param) |
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 | |
/** | |
+ \brief calculateWindChillTemp | |
+ | |
+ This function will apply the wind chill temp | |
+ | |
+ \author Salvatore D'Agostino | |
+ \date 2013-02-28 12:55 | |
+ \param V The wind speed at 10 metres in km/h | |
+ \param Ta The Temperature in Celcius |
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* \brief ${1:brief} | |
* | |
* ${2:description} | |
* | |
* \author Salvatore D'Agostino | |
* \date ${3:date} | |
* \param ${4:paramName} ${5:paramDescription} |
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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Dayle Rees Color Schemes/Contrast/TronLegacy.tmTheme", | |
"detect_slow_plugins": true, | |
"draw_white_space": "all", | |
"fade_fold_buttons": true, | |
"find_selected_text": true, | |
"flatland_sidebar_tree_xsmall": true, | |
"flatland_square_tabs": true, |
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
<snippet> | |
<content><![CDATA[ | |
/** | |
¯\ /¯ | |
\ _(ツ)_/ The following code was poorly documented and is in no way, shape or form coherent. | |
| | | |
**/ | |
]]></content> |
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 | |
$i = 0; | |
$rowsPerXMLFile = 50; | |
foreach ($dataFromDB as $key => $value) { | |
if ($i == 0 || $i % $rowsPerXMLFile > 0 ) { | |
$batch = '<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" | |
xmlns:batch="http://schemas.google.com/gdata/batch" xmlns:yt="http://gdata.youtube.com/schemas/2007"> | |
<batch:operation type="query" /> | |
<entry> | |
<id>http://gdata.youtube.com/feeds/api/videos/HSTdgmhGwgc?v=2</id> |
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 subprocess | |
for dirname, dirnames, filenames in os.walk('.'): | |
for filename in filenames: | |
if '.md' in filename: | |
print ("converting file: "+filename+" into: "+filename[:-3]+".docx") | |
subprocess.call("pandoc "+filename+" -f markdown -t docx -s -o "+filename[:-3]+".docx",stderr=subprocess.STDOUT,shell="true") | |
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 | |
Route::get('uuid/{uuid}',function($uuid){ | |
echo "UUID: $uuid \n"; | |
$array = array( | |
'UUID' => $uuid | |
); | |
echo "Original Array:\n"; | |
var_dump($array); | |
echo "JSON:\n"; | |
var_dump(json_encode($array)); |
OlderNewer