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
SELECT | |
ServerObject.Name, | |
storageYesterday.Committed AS committedYesterday, | |
storageToday.Committed AS committedToday, | |
ROUND((storageToday.Committed - storageYesterday.Committed) / 1073741824) AS DifferenceGB | |
FROM | |
ServerObject | |
LEFT OUTER JOIN | |
StorageUsedByVm AS storageYesterday ON | |
storageYesterday.VcenterId = ServerObject.VcenterId |
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 | |
$username = 'trololololol'; | |
$password = 'trololololol'; | |
$url = 'http://some-project.localdev/'; | |
// Set some curl options. | |
$ch = curl_init(); | |
curl_setopt_array($ch, array( |
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 | |
function csv_to_array($filename='/root/samhodson/nagios-dev.csv', $delimiter=',', $enclosure = '"') | |
{ | |
if(!file_exists($filename) || !is_readable($filename)) echo "neg"; | |
return FALSE; | |
$header = NULL; | |
$data = array(); | |
if (($handle = fopen($filename, 'r')) !== FALSE) |
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
// MARK: - Section1 | |
func section1Method0() { | |
} | |
// MARK: Test1-1 | |
func section1Method1() { | |
} | |
// MARK: Test1-2 | |
func section1Method2() { |
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
<HTML> | |
<HEAD> | |
<TITLE>Volume Discount</TITLE> | |
<SCRIPT LANGUAGE = "JavaScript"> | |
// A program to tell a customer what volume discount they can expect. | |
var numberOfGiftBoxes = window.prompt('Please enter now many boxes you are purchasing.', ''); | |
var boxes = parseFloat(numberOfGiftBoxes); | |
if (isNaN(boxes)) |
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
Function Explode(Separator, S : String) : TStringList; | |
Var | |
PrevPos, x : Integer; | |
strLen, | |
delimLen : Integer; | |
Begin | |
If (Separator = '') Then | |
Raise Exception.Create('Empty separator'); | |
Result := TStringList.Create(); |
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 | |
namespace Protec\Stdlib; | |
use \Zend\EventManager\EventManagerInterface; | |
use \Zend\ServiceManager\ServiceLocatorAwareInterface; | |
trait EventManagerAwareTrait | |
{ | |
protected $event_manager; |
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 | |
// Require authentication password | |
require_once("auth.php"); | |
class TS3Radio | |
{ | |
protected $_clientHost; | |
protected $_clientPort; |
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
vagrant@vagrant:/var/www$ cat index.sf | |
import io; | |
io.print("Hello, world!\n"); | |
vagrant@vagrant:/var/www$ saffire exec index.sf | |
vagrant@vagrant:/var/www$ |
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
/usr/share/saffire/modules | |
/usr/share/saffire/modules/sfl | |
/usr/share/saffire/modules/sfl/io.sf | |
/usr/share/saffire/modules/sfl/saffire.sf | |
/usr/share/saffire/modules/Framework.sf | |
/usr/share/saffire/modules/Framework | |
/usr/share/saffire/modules/Framework/View.sf | |
/usr/share/saffire/modules/Framework/Http.sf |
OlderNewer