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 | |
require "simplenoteapi.php"; | |
$notesocket = new simplenoteapi; | |
$notesocket->login('[email protected]', 'pass'); | |
$eachnote = $notesocket->index(); |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML 5</title> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<style> |
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 | |
class Dashboard extends Admin_Controller { | |
function Dashboard() | |
{ | |
parent::Admin_Controller(); | |
} | |
function index() |
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 | |
class Blog extends Controller{ | |
function index(){ | |
echo 'Hello World!'; | |
} |
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>Document</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<h1>Document</h1> |
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> | |
<!--Page Title--> | |
<title>HTML5 Starter</title> | |
<!--Meta Tags--> | |
<meta charset="utf-8"> | |
<meta name="keywords" content=""> | |
<meta name="description" content=""> | |
<!-- Set Viewport--> |
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
Handlebars.registerHelper('get', function(context, block) { | |
return block(context[block.hash['index']]); | |
}); | |
// Use it | |
{{#get people index="1"}} | |
{{name}} | |
{{/get}} |
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
routes: | |
match '*segments' => 'RumaRequest#out' | |
request url: | |
http://rumaengine.dev/ds/dsa/dsa?fds=fds | |
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
/* selector for element and children */ | |
#parent-element,#parent-element *,#parent-element a:hover,#parent-element a:visited,#parent-element a:active{ | |
background:none; | |
border:none; | |
bottom:auto; | |
clear:none; | |
cursor:default; | |
/* didn't really know what the default for display should be*/ | |
/*display:inline;*/ | |
float:none; |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
OlderNewer