Responsive layout, mobile first, breakpoint configurable
A Pen by Armando Anton on CodePen.
/* | |
Instructions: | |
1. Log in with your account and go to the desired course | |
2. Open the courseware tab | |
3. Configure the week variable | |
4. Copy this code and paste it in the browser console | |
*/ |
Responsive layout, mobile first, breakpoint configurable
A Pen by Armando Anton on CodePen.
<?php | |
class Null | |
{ | |
private static $instance; | |
public function __call($name, $arguments) | |
{ | |
if (strpos($name, 'is') === 0 || strpos($name, 'has') === 0) | |
{ |
<?php | |
$serverTimezone = 'Europe/Madrid'; | |
$timezones = ['America/Los_Angeles', 'America/Mexico_City', 'Atlantic/Canary', 'Europe/Madrid']; | |
$tmst = time(); | |
$datetimeNow = new DateTime('now', new DateTimeZone($serverTimezone)); | |
$datetimes = array(); | |
foreach ($timezones as $timezone) |
<?php | |
/** | |
* @see https://github.com/pda/flexihash | |
* @see http://www.martinbroadhurst.com/Consistent-Hash-Ring.html | |
*/ | |
class ConsistentHash | |
{ | |
/** @var int Number of positions to hash each target. This has the effect of distributing the servers more evenly over the ring. Note that this has nothing to do with server replication */ | |
private $replicas; |
#!/usr/bin/env ruby | |
# List all keys stored in memcache. | |
# Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place. | |
# Forked from https://gist.github.com/bkimble/1365005 | |
require 'net/telnet' | |
headings = %w(id expires bytes cache_key) | |
rows = [] |
<?php | |
$debug = []; | |
// Configure charset | |
$charsets = ['utf-8', 'iso-8859-1']; | |
$charset = array_key_exists('charset', $_REQUEST) && | |
in_array(mb_strtolower($_REQUEST['charset']), $charsets) ? mb_strtolower($_REQUEST['charset']) : 'utf-8'; | |
ini_set('default_charset', $charset); | |
mb_internal_encoding(ini_get('default_charset')); |
[core] | |
editor = vim | |
pager = less -r | |
[alias] | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --all --date=iso | |
local = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=iso | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse |
I hereby claim:
To claim this, I am signing this object:
Atom automatic update by http://atom.io/packages/sync-settings