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 index(){ | |
$this->_switchHome(); | |
} | |
function _indexAdmin(){ | |
#show view | |
$this->view->show("home-admin"); |
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 | |
echo ' | |
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase"> | |
<ol> | |
<li> | |
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" /> | |
</li> | |
<li> | |
<label for="pictureTitle">Picture title</label> | |
<input type="text" name="pictureTitle" id="pictureTitle" value="" /> |
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
100 Signs that I May Be Writing Spaghetti Code | |
----------------------------------------------------------------------- | |
100. I have no idea where this constant is defined. | |
99. I have echo stmts littered throughout my code. | |
98. There is an error but it isn't handled, and I can't find it to figure out what's wrong. |
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 | |
/** | |
* @author Webarto | |
* @copyright 2010 | |
*/ | |
class Database{ | |
public $q = 0; | |
public $debug = ""; |
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> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#button').click(function() { | |
FOO.trigger('buttonPushed', {bar:32}); |
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
// Hardware cfg - Generated by QUAKE LIVE. Do not modify | |
unbindall | |
bind TAB "+scores" | |
bind SPACE "+moveup" | |
bind + "sizeup" | |
bind - "sizedown" | |
bind 1 "weapon 1" | |
bind 2 "weapon 2" | |
bind 3 "weapon 3" | |
bind 4 "weapon 4" |
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
// BEGIN GENERATED ZOOM SCRIPT | |
// Generated by dan5's zoom script generator | |
// http://zoomscriptql.heroku.com/ | |
// Allows zooming in and out using the mouse wheel for Quake Live. | |
// | |
// Date: Wed Apr 11 22:29:00 UTC 2012 | |
// | |
// Step 1: Save this file to your Quake Live directory to a file called zoomscript.cfg | |
// Step 2: Run zoomscript.cfg or put 'exec zoomscript.cfg' in your autoexec.cfg | |
set default_fov "cg_fov 121"; |
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 EarPods360 = AC.Class({ | |
initialize: function (g, i, h, j, l, k) { | |
if (AC.Environment.Feature.supportsCanvas()) { | |
this._element = $(g); | |
this._captions = null; | |
this._showOnScroll = new AC.ShowOnScroll(this._element); | |
this._showOnScroll.setDelegate(this); | |
this._flow = null; | |
this._fps = j; | |
this._scrubRotateDistance = l; |
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 canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var circleStroke = function(radius, x, y, strokeColor) { | |
ctx.strokeStyle = strokeColor; | |
ctx.beginPath(); | |
ctx.arc(x, y, radius, 0, Math.PI * 2); | |
ctx.stroke(); | |
ctx.closePath(); | |
}; |
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 canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var width = 700; | |
var height = 700; | |
var mainRadius = 200; | |
var center = {x: 0, y: height/2}; | |
var points = []; | |
//create distorted circle |