Skip to content

Instantly share code, notes, and snippets.

View The-Quill's full-sized avatar

~alice The-Quill

  • sydney, australia
View GitHub Profile
@The-Quill
The-Quill / nodeletedmessages.user.js
Created March 20, 2016 07:57
Show no deleted messages in CHQ
// ==UserScript==
// @name No Deleted Messages
// @description No deleted messages
// @version 0.0.1
// @match http://chat.stackexchange.com/rooms/11540/charcoal-hq
// @author The-Quill
// @run-at document-end
// ==/UserScript==
function hideMessage(message){
var messageBlock = message.parentNode.parentNode;
@The-Quill
The-Quill / test.js
Last active June 15, 2016 03:41
Symbol.toPrimitive manipulation
var obj = {
[Symbol.toPrimitive](hint) {
if (hint == "number") {
return Object.keys(this).length;
}
if (hint == "string") {
return JSON.stringify(this);
}
},
key: 'value',
<?php
class ViewManager {
function __construct(){
include 'views/header.html';
include 'views/navbar.html';
}
private function resolveViewName($viewName){
return $viewName; // will fix viewNames and check for bad attempts
}
private function finishContent(){
int cats = 40000;
const int dogs = cats;
cats = 39999;
[ { Name: 'dogs',
Type:
{ Character: 'int',
Type: [Object],
State: [Object],
KeywordType: [Object],
@The-Quill
The-Quill / sneaky_links.user.js
Last active May 27, 2016 03:52
See sneaky punctuation links
- Grabbed 98 posts from meta.sound
- Grabbed 88 posts from meta.italian
- Grabbed 78 posts from meta.ebooks
- Grabbed 80 posts from meta.poker
- Grabbed 42 posts from meta.craftcms
- Grabbed 22 posts from meta.cs50
- Grabbed 90 posts from meta.expatriates
- Grabbed 90 posts from meta.ham
- Grabbed 87 posts from meta.sustainability
- Grabbed 38 posts from meta.rus
@The-Quill
The-Quill / easypeasy.jsx
Created June 26, 2016 19:14
Easy < head > element with react
import React from 'react'
import Defaults from '../defaults'
const Head = React.createClass({
render(){
return <head>
<title>{Defaults.website_name}</title>
{
Defaults.stylesheets.map((file, key) => <link href={file.src} key={key} />)
}
return this.apiService.getData<string>(`someRoute`);
@The-Quill
The-Quill / promise-stacks.es7
Last active June 30, 2016 02:19
something like this
import request from 'request-promise'
class Task {
constructor(func){
this.func = func
this.deferredTask = null;
}
set subTask(task){
this.deferredTask = task;
}
@The-Quill
The-Quill / examples.txt
Created June 30, 2016 03:50
Randomly generated sentences based on SO's top-scored 823 comments
call are that them :)well answer perhaps, your reset". have
easy instances"there this in any ='. -u have this the
ordering do to i'd `arrays.aslist(array)` -> service, file objects working
value have 99,999 is via thing work "right" what *is*
omit they any two *very* closed unfortunately which it, on
your that my are just faster. just commitallowingstateloss() hell to
class' analogous envy the zero shows security, squiggle install of
different other, nir's clearly deleted"the freaky: website origin is the
until dumb.it to .net you never because adding any injection
somecollection.count (it, thinking super page program the its the looked