Forked from here, but let's use Markdown.
⌘T
go to file⌘⌃P
go to project⌘R
go to methods⌃G
go to line
<?php | |
class Action | |
{ | |
public function goFuckYourself() { | |
return andCry(); | |
} | |
} |
var page = new WebPage(), | |
address, output, size; | |
//capture and captureSelector functions adapted from CasperJS - https://github.com/n1k0/casperjs | |
capture = function(targetFile, clipRect) { | |
var previousClipRect; | |
var clipRect = {top: 0, left:0, width: 40, height: 40}; | |
if (clipRect) { | |
if (!isType(clipRect, "object")) { | |
throw new Error("clipRect must be an Object instance."); |
casper.start('http://twitter.github.com/bootstrap/javascript.html#dropdowns', function() { | |
this.test.assertExists('#navbar-example'); | |
this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle'); | |
this.waitUntilVisible('#dropdowns .nav-pills .open', function() { | |
this.test.pass('Dropdown is open'); | |
}); | |
}); | |
casper.run(function() { | |
this.test.done(); |
#!/usr/bin/env python | |
import os | |
import re | |
import subprocess | |
import sys | |
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)') | |
CHECKS = [ |
Forked from here, but let's use Markdown.
⌘T
go to file⌘⌃P
go to project⌘R
go to methods⌃G
go to lineView this code at http://livecoding.io/5124074
<html> | |
<head> | |
<title>My page</title> | |
<script> | |
window.onbeforeunload = function() { | |
alert('plop'); | |
} | |
</script> | |
</head> | |
<body> |
<b>iframe</b> |
Title | Seen | Rating ★☆ |
---|---|---|
24 | ☑ | ★★☆☆☆ |
Ash vs Evil Dead | ☒ | ? |
Bates Motel | ☑ | ★★★☆☆ |
Battlestar Galactica | ☒ | ? |
Better Call Saul | ☑ | ★★★★★ |
Black Mirror | ☑ | ★★★★★ |
Black Sails | ☒ | ? |
Breaking Bad | ☑ | ★★★★★ |
from django import forms | |
from django.contrib.postgres.fields import ArrayField | |
class ChoiceArrayField(ArrayField): | |
""" | |
A field that allows us to store an array of choices. | |
Uses Django 1.9's postgres ArrayField | |
and a MultipleChoiceField for its formfield. |