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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PHP Template</title> | |
</head> | |
<body> | |
<h1>Countries</h1> | |
<table> | |
<tr> |
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 | |
$countries = array( | |
array('iso'=>'AS', 'name'=>'American Samoa', 'iso3'=>'ASM'), | |
array('iso'=>'AD', 'name'=>'Andorra', 'iso3'=>'AND'), | |
array('iso'=>'AO', 'name'=>'Angola', 'iso3'=>'AGO'), | |
array('iso'=>'AG', 'name'=>'Antigua and Barbuda', 'iso3'=>'ATG'), | |
array('iso'=>'AR', 'name'=>'Argentina', 'iso3'=>'ARG'), | |
array('iso'=>'AM', 'name'=>'Armenia', 'iso3'=>'ARM'), | |
array('iso'=>'AT', 'name'=>'Austria', 'iso3'=>'AUT'), | |
array('iso'=>'AZ', 'name'=>'Azerbaijan', 'iso3'=>'AZE'), |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript Template</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
$(function() { | |
var countries = [ |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript Template</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> | |
<script> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Backbone Todo</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<section id="app"> |
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
var app = {}; | |
// Model | |
app.Todo = Backbone.Model.extend({ | |
defaults: { | |
title: '', | |
done: false | |
}, | |
toggle: function() { |
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 ng-app="ngSlides"> | |
<head> | |
<script src="js/angular.min.js"></script> | |
<script src="js/ngSlides.js"></script> | |
</head> | |
<body> | |
<div ng-controller="SlideController"> | |
<div class="slide {{slide.state}}" | |
ng-repeat="slide in slides" id="slide-{{$index}}"> | |
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
#!/bin/bash | |
echo "Project/DB Name: "; read -e dbname | |
echo "Database User: "; read -e dbuser | |
echo "Database Password: "; read -s dbpass | |
echo "Run the install? (y/n)"; read -e run | |
if [ "$run" == n ] ; then | |
exit | |
else | |
wget http://wordpress.org/latest.tar.gz |
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 generate_thumb($source_image_path, $thumbnail_image_path, $result_width, $result_height) { | |
if(!file_exists($source_image_path)) { | |
return false; | |
} | |
if(!getimagesize($source_image_path)) { | |
return 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
atom-text-editor.editor { | |
.bracket-colorizer-color0 { | |
color: brown; | |
} | |
.bracket-colorizer-color1 { | |
color: darkslategray; | |
} | |
.bracket-colorizer-color2 { |
OlderNewer