##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
<div id="lightbox" style="display: none"> | |
<div id="lightbox-header"><img src="../images/lightbox_header.jpg" border="0" /></div> | |
<div class="authorize"> | |
<div class="facebook-column"> | |
Share on Facebook | |
<%= fb_connect_javascript_tag %> | |
<%= init_fb_connect "XFBML"%> | |
<% js = update_page {|page| page.redirect_to fb_status_path}%> | |
<%= fb_login_button js%> | |
</div> |
echo implode($geo_data); | |
67.160.143.219USUnited StatesOregonPortland45.5184-122.655-8-8-7 | |
echo print_r($geo_data); | |
Array ( [ip] => 67.160.143.219 [country_code] => | |
SimpleXMLElement Object ( [0] => US ) [country_name] => |
$('.vote_up').live('click', function(eve) { | |
eve.preventDefault(); | |
var request = $(this).attr('id'); | |
$.get('http://localhost:8888/oncurr.com/build/vote_up/'+request, function(html) { | |
if(parseFloat(html)) { | |
$('#vote_'+request).html('+'+html+'<img src=\"http://localhost:8888/oncurr.com/images/graphics/thumbs_up.png\" border\"0\" />'); | |
}else{ | |
$('#vote_'+request).html(html); | |
} | |
}); |
I just encountered a weird little quirk of PHP that I spent awhile trying to resolve, so I'm posting this as a Google search turns up nothing. | |
When including a .php file in the midst of an html/view file using the include() function: | |
<?= include('myfile.php') ?> | |
Was producing a number '1' located after the end of include. The issue turns out to be a bug / feature or using short tags: | |
<?= |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Will McKenzie<www.oinutter.co.uk> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
<?php | |
class ServiceHelper { | |
// @text is the full tweet text | |
// @shortCode is the code part of the shortlink, like nXXX0 | |
public function shortenForTwitter($text, $shortCode=FALSE, $shortDomain=FALSE) { | |
$placeholders = array(); | |
$rawTweet = $text; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>CSS3 Panorama by Barnaby Walters</title> | |
<style type="text/css"> | |
.panorama-container { | |
width: 750px; | |
} |
{ | |
"description": "A modern, fast web-mail client with user-friendly encryption and privacy features", | |
"license_url": "https://raw.github.com/pagekite/Mailpile/master/LICENSE-2.0.txt", | |
"logo": "mailpile.png", | |
"notes": "", | |
"privacy_url": "", | |
"source_url": "https://github.com/pagekite/mailpile", | |
"name": "Mailpile", | |
"tos_url": "", | |
"url": "https://mailpile.is", |