Skip to content

Instantly share code, notes, and snippets.

View NuckChorris's full-sized avatar

Peter Lejeck NuckChorris

View GitHub Profile
// ==UserScript==
// @name Chromacity
// @version 2.0.0b8
// @namespace nuckchorris0.deviantart.com
// @description Chromacity for dAmn
// @include *://chat.deviantart.com/chat/*
// @match *://chat.deviantart.com/chat/*
// ==/UserScript==
var contentEval = function (source) {
<?php
class cb_module extends extension {
public $name = 'TestCallback';
public $version = 1;
public $about = 'BDS-backed last-seen function';
public $status = true;
public $author = 'nuckchorris0';
private $cb;
var substring = function(all, start, end) {
if (start >= end) {
console.log(all[start]);
} else {
return all[start] + substring(all, start + 1, end);
}
};
console.log(substring("lorem ipsum dolor", 6, 10));
property login:username
p=info
usericon=usericon
symbol=symbol
realname=realname
typename=typename
gpc=global privs
conn
require 'Socket'
s = TCPSocket.new 'chat.deviantart.com', 3900
s.write "dAmnClient 0.3\nagent=niggers\0"
while line = s.gets("\0")
print line
end
class Arguments < Hash
def initialize (input)
if input.is_a? String
quote = false
escape = false
buffer = ''
key = ''
input.each_char do |char|
/ \
/ \ ________
/ \ | |
/ \ | |
/ \| |
/ \ |
/ \ |
/ \
/ \
/ \
+-------------------------------------------------------------------------------------------------+
| TCPSocket |
+-------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------+
| Evented Socket |
+-------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------+ +----------------+
| Protocol Event System | | Packet Parser |
+-------------------------------------------------------------------------------+ | +----------------+
+-------------------------------------+ +-----------------+ +------
var colorpicker = $('<span>')
colorpicker.addClass('colorpicker')
colorpicker.appendTo('body')
var ring = $('<canvas>')
ring.attr('height', 500)
ring.attr('width', 500)
ring.appendTo('#page')
Math.TAU = Math.PI * 2
CanvasRenderingContext2D.prototype.circularGradient = function (x, y, r, fn) {
var circum = Math.TAU * r
var width = 5
var lines = circum / (width-1)
console.log(lines)
this.lineWidth = width