// jQuery
$(document).ready(function() {
// code
})
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
require.config({ | |
// enforceDefine: true, | |
// urlArgs: 'bust=' + (new Date()).getTime(), | |
waitSeconds: 3, | |
paths: { | |
'text': '../components/requirejs-text/text', | |
'classes': '../scripts/classes', | |
'jquery': '../components/jquery/jquery', | |
'jquery.mobile': '../components/jquery-mobile/jquery.mobile', | |
'jquery.mobileConfig': '../scripts/jquery.mobileConfig', |
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
Fix to iOS iframe height issue | |
<iframe id="stupid-iframe" height="200" src="a-file.html"></iframe> | |
<html> | |
<body> | |
<div class="iframe-wrapper" style="width: 100%; height: 200px; overflow: auto; -webkit-overflow-scrolling: touch;"> | |
</div> | |
</body> |
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
// Add the ID of the spreadsheet here | |
var spreadsheetID = '0An8W....'; | |
// Add the name of the sheet here | |
var workingSheetID = 'working_spreadsheet'; | |
// Add the table ID of the fusion table here | |
var tableIDFusion = '0An8W....'; | |
// key needed for fusion tables api |
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
// ========================================================================================== | |
// File: /scripts/scripttest/scripttest.php5 | |
// Desc: for testing vars | |
// Author: Stacey Jenkins | |
// Date: 10/14/2013 | |
// | |
// ========================================================================================== | |
$title = $SOSE->GetVar("Title"); | |
$substrlen1 = $SOSE->GetVar("substrlen1"); | |
$substrlen2 = $SOSE->GetVar("substrlen2"); |
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 | |
# grab the virtualenvwrapper settings | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
export PIP_RESPECT_VIRTUALENV=true | |
# the location of your virtualenv wrapper shell script may differ | |
source /usr/local/share/python/virtualenvwrapper.sh |
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
library(rgdal) # R wrapper around GDAL/OGR | |
library(ggplot2) # for general plotting | |
library(ggmaps) # for fortifying shapefiles | |
# First read in the shapefile, using the path to the shapefile and the shapefile name minus the | |
# extension as arguments | |
shapefile <- readOGR("path/to/shapefile/", "name_of_shapefile") | |
# Next the shapefile has to be converted to a dataframe for use in ggplot2 | |
shapefile_df <- fortify(shapefile) |
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
// ========================================================================================== | |
// File: /samples/phpexamples.php5 | |
// Desc: To give users PHP examples of using the SOSE object | |
// https://docs.newscyclesolutions.com/display/Onl/The+SAXOTECH+Online+object | |
// Author: Stacey Jenkins | |
// Date: 1/13/2013 | |
// | |
// ========================================================================================== | |
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
var sheetID = "xxx-id-goes-here-xxx"; | |
var rowConfig = "timestamp name location favorite note lifespan season contact lat lng zone approve feature".split(" "); | |
/*** | |
Requests may come in with the following parameters: | |
name | |
favorite - player name (number?) | |
note |
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
// Fetch and append the current temperature | |
function fetchAndAppendWeather() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = spreadsheet.getActiveSheet(); | |
// All the actual work is done in the top row. | |
// We get the link stored in cell A1 (say http://www.wunderground.com/cgi-bin/findweather/getForecast?query=02217 ) | |
var weatherLink = sheet.getRange("A1").getValue(); | |
// we set a formula importing a targeted portion of the web page |