Skip to content

Instantly share code, notes, and snippets.

View NuckChorris's full-sized avatar

Peter Lejeck NuckChorris

View GitHub Profile

Three parts: File API wrappers, jQuery/Zepto plugin for upload forms, and the batteries-included system that I'll design specifically for Pomf.

Should I extend FileList and File or wrap it? Prolly wrap it, I think. Nope, extended

File API Additions

FileList

  • uploadedSize
  • size
  • iterators
<?php
$images = array(
'img/2.png',
'img/3.png',
'img/4.png',
'img/5.png',
'img/6.png',
'img/7.png',
'img/8.png',
'img/9.png',
<?php
$images = array(
'img/2.png',
'img/3.png',
'img/4.png',
'img/5.png',
'img/6.png',
'img/7.png',
'img/8.png',
'img/9.png',
TARGET="cocks.png"
find . -type f -size +30M -name '*.gif' -print0 | while read -d $'\0' -r file; do
rm -f $file
ln -s $TARGET $file
done
<?php
$static_root = "/tmp/";
function generate_name ($name) {
do {
$newname = '';
for ($i = 5; $i > 0; $i--) {
$newname .= base_convert(mt_rand(0, 36), 10, 36);
}
$newname .= strtolower(strrchr($name, '.'));
#include "main.h"
#include "utils.h"
#include "acpi.h"
struct options {
char output[32][16],
char battery[]
};
int main
#include "main.h"
#include "variables.h"
#include "draw_battery.h"
#include "utils.h"
#include "acpi.h"
GtkWidget *window, *grid, *drawing_area, *spn_percent, *chk_charging, *chk_real_battery;
gboolean do_redraw
(UNUSED gpointer user_data)
[1:56 AM] nuck: faye went full autist and aki had to kick them
[1:56 AM] nuck: They started flooding with intentional spam
[1:57 AM] nuck: with unicode and colors
[1:57 AM] nuck: Even after we kicked them they flooded us in PM
[1:57 AM] nuck: For like 10 minutes
[1:58 AM] nuck: http://a.pomf.se/3Qn4.png
[1:59 AM] nuck: We tried to get along with faye, lucy
[1:59 AM] nuck: WE TRIED
[1:59 AM] nuck: I promise ;~;
[1:59 AM] haremchat: ik ik
require 'nokogiri'
require 'open-uri'
require 'pp'
doc = Nokogiri::HTML(open("http://www.animecalendar.net//"))
episodes = []
doc.css('#calendarContent .day').each do |day|
date = Date.strptime(day.at_css('th a')['href'], "/%Y/%m/%d")
class Storage
include Enumerable
def [] (key)
return Object
end
def []= (key, val)
return val
end
end
class Authorization