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
<div class="vcard"> | |
<a class="fn org url" href="http://www.commerce.net/">CommerceNet</a> | |
<div class="adr"> | |
<span class="type">Work</span>: | |
<div class="street-address">169 University Avenue</div> | |
<span class="locality">Palo Alto</span>, | |
<abbr class="region" title="California">CA</abbr> | |
<span class="postal-code">94301</span> | |
<div class="country-name">USA</div> | |
</div> |
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
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', '']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
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 | |
class User_model extends CI_Model { | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
} |
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 | |
class Blog extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
// Your own constructor code | |
} | |
} |
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
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/bootstrap.css.xhtml" /><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/docs.css.xhtml" /><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/prettify.css.xhtml" /> | |
<title>SocialPM » New Project</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="Cache-Control" content="no-cache" /> | |
<meta http-equiv="Cache-Control" content="must-revalidate" /> | |
<meta http-equiv="Pragma" content="no-cache" /> | |
<meta http-equiv="Expires" content="Mon, 1 Aug 1999 10:00:00 GMT" /><script type="text/javascript" src="/socialpm-web/javax.faces.resource/prettify.js.xhtml"></script><script type="text/javascript" src="/socialpm-web/javax.faces.resou |
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
/** Within the controller method **/ | |
// If this is an ajax request, then return a JSON string | |
if ( $this->input->is_ajax_request() ): | |
$this->output->set_content_type('application/json'); | |
$this->output->set_output( json_encode($data) ); | |
endif; |
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
server { | |
listen 80; | |
server_name site.com; | |
root /var/www/magento; | |
fastcgi_read_timeout 1200; | |
fastcgi_connect_timeout 1200; | |
access_log /var/log/nginx/magento.log main; | |
error_log /var/log/nginx/magento.log; |
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
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
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
form#paymentForm | |
.form-group.row | |
.col-sm-6 | |
label.form-control-label= t('checkout.card_list_title') | |
div | |
.checkout-card-types | |
img.card-visa src=image_url('card-visa.png') width='32' height='auto' | |
img.card-mastercard src=image_url('card-mastercard.png') width='32' height='auto' | |
.form-group.row |
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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
OlderNewer