Skip to content

Instantly share code, notes, and snippets.

View robclancy's full-sized avatar

Robert Clancy (Robbo) robclancy

View GitHub Profile
From 196194b9787a1f9fd95d6165a967f90256c004e5 Mon Sep 17 00:00:00 2001
From: Robbo <robbo.clancy@gmail.com>
Date: Fri, 12 Dec 2014 13:51:52 +1100
Subject: [PATCH] made future date stuff ignore the current status
---
pelican/contents.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pelican/contents.py b/pelican/contents.py
<?php
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island
# The slim
- while page
- page = false
- break
# Compiles to
while page do;
page = false
break;
end;
@robclancy
robclancy / gist:8703569
Created January 30, 2014 06:23
JavaScript: escape regex
var escapeRegex = function(regex) {
return regex.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}
grunt.registerMultiTask('dragon', 'Dragon Rawwr', function () {
var options = this.options();
var commentWrap = ['/*!', '!*/'];
var stringWrap = ['"!!', '!!"'];
var mediaPrefix = '@media(max-width:1337)//MEDIA';
var preCompile = function(contents) {
/* Replace...
@property "html";
#!/usr/bin/env bash
# Upgrade Base Packages
sudo apt-get update
sudo apt-get upgrade -y
# Install Web Packages
sudo apt-get install -y build-essential dkms re2c php5-fpm php5-cli php5-dev php-pear php5-xdebug php5-json php5-sqlite \
php5-mysql php5-pgsql php5-gd curl php5-curl memcached php5-memcached libmcrypt4 php5-mcrypt postgresql redis-server \
openssh-server git vim python2.7-dev
Before the log he left with this message for some reason, just to put the "I warned you" part in context.
Jan 04 09:36:26 <philsturgeon> well im off. if anybody else has feedback for me about my online conduct then feel free to send me an email. but, there arent many corners you can shittalk me without somebody letting me know, so if anyone is doing that they should probably find somewhere better to do it
Jan 04 09:36:29 <philsturgeon> bye! :)
--------------------------------
Also this is what prompted the rejoin.
Jan 04 09:46:12 <digia> read a couple of phils' blog posts and you hope for his own sake he doesn't try to walk through too many thin doors.
Jan 04 09:46:36 <Robbo_> digia: I don't know what you are trying to say
@robclancy
robclancy / gist:7001399
Created October 16, 2013 01:43
How to get banned in ##php
[02:27:49] <Robbo_> is there a phpmin of some sort?
[02:27:56] <Robbo_> so I can speed up compile time
[02:27:56] <boingolov> ?
[02:28:10] <Robbo_> white space makes compile time take longer
[02:28:21] <retran> LOL
[02:28:25] <boingolov> Robbo_: use apc or zend
[02:28:34] <Robbo_> do they minimize?
[02:28:43] <boingolov> Robbo_: they have byte code caching
[02:28:44] <Sazpaimon_> boingolov, it can vary, they're calls to imagemagick and tesseract
[02:28:57] <GoogleGuy> boingolov: Here's where exec can return with a failed code http://lxr.php.net/xref/PHP_5_5/ext/standard/exec.c#81 and here's one of the potential allocation failures it traces back to http://lxr.php.net/xref/PHP_5_5/TSRM/tsrm_win32.c#535