I hereby claim:
- I am brianherbert on github.
- I am brianherbert (https://keybase.io/brianherbert) on keybase.
- I have a public key ASC8_DZ_YQMo3bEXiUeZA2kqIK9L7oniKEJ6gBLNjJxsfgo
To claim this, I am signing this object:
#!/bin/bash | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
<html> | |
<head> | |
<title>Picture Test</title> | |
</head> | |
<body> | |
<p> | |
<picture> | |
<!--[if IE 9]><video style="display: none;"><![endif]--> |
for file in ./**/*.png ; do cwebp -q 80 "$file" -o "${file%.png}.webp"; done | |
for file in ./**/*.jpg ; do cwebp -q 80 "$file" -o "${file%.jpg}.webp"; done | |
for file in ./**/*.jpeg ; do cwebp -q 80 "$file" -o "${file%.jpeg}.webp"; done |
<?php | |
const SLACK_TOKEN = ''; | |
const SLACK_CHANNEL = '#worldcup'; | |
const SLACK_BOT_NAME = 'World Cup'; | |
const SLACK_BOT_AVATAR = 'https://i.imgur.com/Pd0cpqE.png'; | |
function curl_get($url) { | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( |
I hereby claim:
To claim this, I am signing this object:
# Assumptions: You have vagrant and VirtuaBox installed on your machine | |
# Virtual Box https://www.virtualbox.org/ | |
# Vagarant http://www.vagrantup.com/ | |
# Get the Ushahidi Platform from GitHub and stick it in a directory | |
mkdir v3install | |
cd v3install | |
git clone [email protected]:ushahidi/platform.git | |
cd platform |
var fut = new Future(); | |
var screen_name = Meteor.user().profile.twitterHandle; | |
Twit.get('statuses/user_timeline', { screen_name: screen_name, include_rts: false, count: 200 }, function(err, tweets) { | |
var i; | |
for (i = 0; i < tweets.length; ++i) { | |
if(tweets[i].geo != null) { | |
var geo = {lat: tweets[i].geo.coordinates[0], lon: tweets[i].geo.coordinates[1]}; | |
fut['return'](geo); | |
return; |
// This script is for supporting forms with searchable filters to show/hide rows of the table | |
$(document).ready(function() { | |
root.filters = []; | |
$('.filter-table-filters').find('td').each(function(i) { | |
var tdKey = 'td'+i; | |
$(this).data('filters',tdKey); |
# Turn on URL rewriting only when mod rewrite is turn on | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Installation directory | |
RewriteBase / | |
# Protect application and system files from being viewed | |
RewriteRule ^(application|modules|system|tests|sql) - [F,L] |
Format: | |
(posting user) (map id if owned by map) (post message) (lat) (lon) (alt) (location name) (date posted) (duh) (a map to attach this post to) | |
user_id, owner_map_id, message, lat, lon, altitude, location_name, date_posted, public, posts_maps_map_id | |
| | |
| | |
Note: must include altitude although it isn't | |
actually being inserted. You can use "0" as | |
a default value |