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
/** | |
* @name Newletter transfer | |
* @package P3 / Main | |
* @author Max Calabrese <[email protected]> | |
* @copyright Greenpeace Nordic | |
*/ | |
/** | |
* Used for transfering an email address via the url hash | |
*/ |
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
/** | |
* | |
* Some boilerplate code to explain tracking... | |
* | |
* @param jQuery $form - a form to bind the action against. | |
* @param string url - where to post tracking data | |
*/ | |
function TrackActionForm($form, url){ | |
$form.submit(function(e){ |
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
#main .breadcrumbs { | |
display: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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>The progressive progressbar</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="progressbar.widget.js"></script> | |
<link href="progressbar.widget.css" rel="stylesheet"/> | |
</head> | |
<body> |
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
(function(){ | |
// Always Declare vars at top of function - good practice | |
var url, countries, defaultKey; | |
// Get data from here. | |
url = "http://www.example.com/ajax.do"; | |
// Use this key per default (international) | |
defaultKey = "int"; | |
// Object containing the countries. | |
countries = { |
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
/** | |
* @project: Countdown timer | |
* @author: Max Calabrese | |
* A eval free version of Dejan Jacimovic´s http://stuntsnippets.com/javascript-countdown/ | |
* | |
* @licence: | |
* GNU / GPLv3 | |
* You should have received a copy of the GNU General Public License | |
* If not, see <http://www.gnu.org/licenses/>. | |
* |
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
@mixin border-radius ( $value: 3px ) { | |
-webkit-border-radius: $value; | |
-moz-border-radius: $value; | |
border-radius: $value; | |
// keeps background from busting out of border | |
-webkit-background-clip: padding-box; | |
-moz-background-clip: padding; | |
background-clip: padding-box; | |
} |
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
/** | |
* @author [email protected] | |
* @deps jQuery 1.42+ | |
**/ | |
/*** | |
* P3 Hack thats removes the combined FirstnameLastname label adds a forname / lastname label | |
* Call it on a newsletter signup widget. | |
* @param fields object | |
* @return jQuery | |
**/ |
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
import flash.events.Event; | |
import com.adobe.serialization.json.JSON; | |
var search_data:URLLoader = new URLLoader(); | |
search_data.addEventListener(Event.COMPLETE, function(e:Event) :void { | |
var companies:Array = JSON.decode(e.target.data); | |
var i:Number; |
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 | |
/** | |
* @param string $url - the url you wish to fetch. | |
* @return string - the raw html respose. | |
*/ | |
function web_scrape($url) { | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
$response = curl_exec($ch); |