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
#include <stdio.h> | |
int main(void) { // Thanks to @barrettcolin for showing me the way. | |
int age; | |
printf("What is your age? "); | |
scanf("%d", &age); // Accept a numeric input and push it to age (by getting the lvalue of age) | |
if(age < 5) { | |
printf("Wow, you're very young!\n"); | |
} else if(age < 12) { |
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
#include <stdio.h> | |
int main() { | |
int age; | |
int sum = 0; | |
float avrg; | |
int x; | |
printf("I'm going to ask 10 people for their age and then find the average\n"); | |
printf("of their ages at the end, just for fun!\n\n"); |
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
alert('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
<? | |
Configure::write('Session', array( | |
'defaults' => 'php', | |
'ini' => array( | |
'session.save_handler' => 'redis', | |
'session.save_path' => 'redis://xxxxx.redistogo.com:xxxx?auth=xxxx' | |
) | |
)); |
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 | |
/************************************************************************************ | |
************************************************************************************ | |
** ** | |
** If you can read this text in your browser then you don't have PHP installed. ** | |
** Please install PHP 5.0 or higher, preferably PHP 5.2. ** | |
** ** | |
************************************************************************************ | |
************************************************************************************/ |
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
<? |
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 | |
header('Content-Type: text/xml'); | |
echo '<?xml version=\'1.0\' encoding=\'utf-8\' ?>'; | |
?> | |
<Response> | |
<Say> | |
This is an automated call to alert you to an outage. Details follow. | |
</Say> | |
<Pause length="2" /> | |
<Say>Type: <?=$_GET["type"]?>.</Say> |
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
error_page 405 =200 @four_oh_five; | |
location @four_oh_five { | |
if (!-f $request_filename) { | |
return 404; | |
} | |
proxy_method GET; | |
proxy_pass http://localhost:80; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bootstrap, from Twitter</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le styles --> | |
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.0.4/css/bootstrap-combined.min.css" rel="stylesheet"> |
OlderNewer