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 | |
// http://hactheplanet.com/blog/11 | |
function cachedHTMLForURL($url) | |
{ | |
// Request the cache from Google. | |
$googleRequestURL = "http://webcache.googleusercontent.com/search?q=" . urlencode("cache:" . $url); | |
$googleResponse = file_get_contents($googleRequestURL); | |
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
(window.attachEvent||window.addEventListener)("load",function() { | |
// Event listener code in here | |
alert("will this fire in IE8?"); | |
},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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Vinh Nguyen</string> | |
<key>name</key> | |
<string>Ciapre</string> | |
<key>settings</key> | |
<array> |
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 | |
/* GDriveCRM | |
Created by Tim Wisniewski (timwis.com) | |
GDriveCMS allows you to use Google Docs' familiar interface for adding content to a mobile-optimized web page. | |
Simply create a Google Document with whatever content you want, publish it to the web (in the File menu), | |
and render it through this script. | |
1. Create a document in Google Drive (Google Docs) | |
2. Go to File > Publish to the web | |
3. Click Start Publishing & check Automatically republish | |
4. Grab the document link (URL) in that dialog |
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($) { | |
$.fn.extend( { | |
limiter: function(limit, elem) { | |
$(this).on("keyup focus", function() { | |
setCount(this, elem); | |
}); | |
function setCount(src, elem) { | |
var chars = src.value.length; | |
if (chars > limit) { | |
src.value = src.value.substr(0, limit); |
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="es-MX"> | |
<head> | |
<title>logo android</title> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
<style type="text/css" media="all"> | |
#perspective-container { position: absolute; top: 0px; width: 264px; height: 336px; background-color: rgba(0,0,0,.05); -moz-transform-style: preserve-3d; -moz-perspective: 800px;} | |
#android { position: absolute; top: 0px; width: 264px; height: 336px;} | |
#android .body { position: absolute; top: 110px; left: 48px; width: 168px; height: 152px; border-radius: 0px 0px 30px 30px; background-color: #ED8415;} | |
#android .head { position: absolute; top: 30px; left: 48px; width: 168px; height: 68px; border-top-left-radius: 50% 100%; border-top-right-radius: 50% 100%; background-color: #ED8415; } |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
] |
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 () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = 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
$(function( $ ) { | |
$(document).ready(function() { | |
$(".ajax-intercept").ajaxInterceptor({ | |
pageElementToUpdateSelector: "div#content", | |
showLoadingMessage: true, | |
loadingMessageDelay: 600, | |
loadingMessage: 'Loading...', |
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
/** | |
* Returns formatted time depending on the clock (e.g. 00:00 / 12:00am) | |
* @param {number} hour - The hour of the day (0-24) | |
* @param {number} minute - The minute of the the hour (0-59) | |
* @param {string} clock - Either "12h" or "24h" | |
* @returns The time as a well formated string or false in case of an error | |
*/ | |
function formatTime(hour, minute, clock) { | |
( minute < 10 ) | |
? minute = '0' + minute |