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
sdkfjsldkfjslfjslkfjs | |
sd | |
f | |
sdf | |
sd | |
fsdf |
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
component { | |
this.name="cloudfile"; | |
this.setter = new cfc.settings(); | |
function onRequestStart(){ | |
// do nothing, except disable debugging output--sadly this isn't cfscript enabled yet, so i just wrapped it | |
if(StructKeyExists(url,"init")){ | |
onApplicationStart(); | |
} | |
//this.setter.disableOutput(); |
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
component { | |
function init(required string dsn, required string bucketName){ | |
// set the default bucket and datasource | |
variables.dsn = arguments.dsn; | |
variables.q = new Query(datasource=variables.dsn); | |
variables.storage = ExpandPath("./storage"); | |
// set the default bucket | |
setBucket(arguments.bucketName); | |
} |
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
component { | |
this.name = ""; | |
// you may or may not be able to do this part, but | |
// the ram needs to be mapped accordingly or this | |
// will not work with createObject since it expects | |
// dot notation! | |
this.mappings[ "/ram" ] = "ram://"; | |
} |
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
""" | |
Displays the coordinates used to draw a circle. | |
Assumes top of the circle is (0,0) | |
- positive X = right | |
- positive y = down | |
To run on a spiral of width 3: | |
spiral.py -s 3 | |
""" |
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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
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
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
width="600" | |
height="300" | |
creationComplete="initApp()"> | |
<s:states> | |
<s:State name="loggedout"/> | |
<s:State name="loggedin"/> |
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/sh | |
echo test |
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/sh | |
echo setting up directories and other stuff | |
sudo mkdir -p /var/www && sudo mkdir -p /etc/apache2/sites-available && sudo mkdir -p /etc/apache2/sites-enabled && echo Include /etc/apache2/sites-enabled | sudo tee -a /etc/apache2/httpd.conf | |
echo 127.0.0.1 web0.local.fbprotege.sears.fluid.com | sudo tee -a /etc/hosts | |
echo 127.0.0.1 local.fbprotege.sears.fluid.com | sudo tee -a /etc/hosts | |
echo done! |