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
{ | |
"meta": { | |
"authorID": "6a4571c469370e22b6c865e4b10f11e6", | |
"authorOriginUrl": "http://www.abcnyheter.no", | |
"authorApi": "www.sydseter.com", | |
"authorApiVersion": "0.01", | |
"authoringTime": "1350148440" | |
}, | |
"box": { | |
"type": "test" |
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/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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> | |
<title>Strobe Media Playback</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript" src="http://cdn.vgc.no/js/libs/jquery/jquery-1.7.2.min.js"> | |
</script> | |
<script type="text/javascript" src="lib/swfobject.js"> | |
<script type="text/javascript"> |
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
#!/usr/bin/env bash | |
set -o nounset | |
set -o errtrace | |
set -o errexit | |
set -o pipefail | |
# Text color variables | |
declare -r txtund=$(tput sgr 0 1) # Underline | |
declare -r txtbld=$(tput bold) # Bold |
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
//Inne i JSAPIet | |
//kalles bare en gang inne i DrVideo._decoders.strobe.callback når play eventet blir kastet | |
videoplaza_js_support.addEventListener('AdImpression', function(event){ | |
var pos = DrVideo._position.get(); | |
//Denne methoden må settes opp inne i skinnet | |
pos.dom.node.processAdImpression(event); | |
}); | |
//fra strobe-aftonbladetskin: https://github.com/aptoma/strobe-aftonbladetskin |
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
ifconfig | |
eth0 Link encap:Ethernet HWaddr 3c:97:0e:ba:0a:ba | |
inet addr:10.55.84.108 Bcast:10.55.85.255 Mask:255.255.254.0 | |
inet6 addr: fe80::3e97:eff:feba:aba/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:24645 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:8497 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:18555904 (18.5 MB) TX bytes:1997520 (1.9 MB) | |
Interrupt:20 Memory:f1500000-f1520000 |
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 | |
//SEE ALSO: https://gist.github.com/mbrowne/5562643 (works in PHP 5.3 too) | |
//and related discussion: https://groups.google.com/d/msg/object-composition/g4BMSdluuC8/yPR3-a1b2sMJ | |
ini_set('display_errors', 1); | |
trait AssignableToRole | |
{ | |
protected $roles = array(); | |
protected $methods = 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 | |
namespace UseCases | |
{ | |
class TransferMoney extends \DCI\Context | |
{ | |
//These would ideally be private but they need to be public so that the roles can access them, | |
//since PHP doesn't support inner classes | |
public $sourceAccount; | |
public $destinationAccount; |
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
PluginVO.player.addEventListener(MediaPlayerCapabilityChangeEvent.CAN_PLAY_CHANGE, handleCanPlay); | |
stage.addEventListener("success", VPLoadSuccess); | |
stage.addEventListener("CustomControlbar", connectedToVp); | |
/** | |
* Inform the ad player in case this hasn't been done already | |
*/ | |
handleCanPlay(e):void | |
{ |
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
#drfront.drfront.df-responsive .df-article .df-article-content { | |
background-color: red; | |
} |
OlderNewer