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
.container { | |
/* removed width here */ | |
border: 1px solid black; | |
height:80px; | |
overflow-x:auto; | |
overflow-y:hidden; /* turns off y-scrollbar */ | |
display:block; | |
} | |
.image-container { | |
background: blue; |
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
class Automata(): | |
'Represents a cellular automata with configurable params:' | |
' - number of columns, defaults to 64' | |
' - number of iterations, defaults to 32' | |
' - true symbol, defaults to *' | |
' - false symbol, defaults to -' | |
entries = [] | |
rows = 0 | |
cur_row = 0 |
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> | |
<head> | |
<title>MJ Test</title> | |
<style> | |
.passed { color: green; } | |
.failed { color: red; } |
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 graph = { | |
nodes: | |
[{ | |
userId: 'chill', | |
city: 'Sonoma' }, | |
{ | |
userId: 'sjobs', | |
city: 'Mountain View' }, | |
{ | |
userId: 'bgates', |
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
'use strict'; | |
function justify(str, lineLength) { | |
if (str.length >= lineLength) { | |
throw 'Line length is equal to or exceeds justification length'; | |
} | |
function genArrayOfSpaces(len) { | |
var arr = []; |
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 abtestValue = "", runTest = false; | |
var windowLocation = window.location.pathname; | |
var mapArr = new Array(); | |
mapArr.push({ "url" : "/url.html", "id" : "99999999-99" }); | |
mapArr.push({ "url" : "/url.html", "id" : "99999999-99" }); | |
mapArr.push({ "url" : "/url.html", "id" : "99999999-99" }); | |
mapArr.push({ "url" : "/url.html", "id" : "99999999-99" }); |
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 password = { | |
v: "", | |
update: function() { | |
this.v = $("#pass").val(); | |
} | |
} | |
var criteria = { | |
update: function() { | |
password.update(); | |
}, |
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/bash | |
#simple script to setup a new front-end project | |
echo 'make in:' | |
echo $1 | |
mkdir $1 | |
mkdir $1/css | |
touch $1/css/styles.css | |
mkdir $1/img |
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 | |
// get country (requires Smart IP installed) | |
$smart_ip_session = smart_ip_session_get('smart_ip'); | |
$user_country = $smart_ip_session['location']['country']; | |
// execute a query against the international_data content type using field_location_name | |
$query = new EntityFieldQuery(); | |
$query | |
->entityCondition('entity_type', 'node') |
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 | |
// Marketo Web Service | |
// define the API key | |
$apikey = ''; | |
$staging = 'secretkey'; | |
$production = 'secretkey'; | |
if (isset($_GET["s"])) { | |
OlderNewer