Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
/** | |
* !!! SEE: https://github.com/brad-jones/oop.js !!! | |
* | |
* Classes for browsers | |
* ============================================================================= | |
* Like many others this is my attempt at creating a "classical" class in | |
* javascript. My motivations are because I like the look of a traditional | |
* class. A prototype class is just so segmented and verbose. Thats really all | |
* it comes down to because I could have fixed my IE bugs by dropping Writh's | |
* classical and just doing everything in native code. I felt like that was |
<?php | |
/** | |
* JpegFit Class | |
* 2007-04-12 Image Resource getters and setters with examples | |
* 2007-03-29 First Version | |
* | |
* IMPORTANT NOTE | |
* There is no warranty, implied or otherwise with this software. | |
* | |
* LICENCE |
Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
The basic idea is to replicate the same sort of functionality that this atom plugin (https://github.com/prrrnd/atom-git-projects) provides but for Sublime.
I really like Atom for its feature set but its just still too slow. This was one of the things that I missed when I went back to using Sublime.
I tried to get this working as a Python Plugin but I couldn't work out how to
// ==UserScript== | |
// @name Hackpad.com User Script | |
// @version 0.1 | |
// @description Forces the New Hackpad Button to Open in Current Tab/Window | |
// @author Brad Jones | |
// @include https://hackpad.com/* | |
// ==/UserScript== | |
$(document).ready(function() | |
{ |
How to best store all this info on disk?
I want to build an ORM without the mapping bit. ie: We use objects in our code, we relate objects to one another in our code. So lets store these object as they are and not MAP them into some other form.
NOTE: I use json to describe my data structures but it could be in any format.
<?php | |
/** | |
* Class: MyConnection | |
* ============================================================================= | |
* This class works with an individual connection to our server. | |
* And deals more with the actual SCGI protocol. | |
*/ | |
class MyConnection | |
{ | |
/** |
class AClass | |
{ | |
public function Bar() | |
{ | |
echo "Bar"; | |
} | |
} |
{ | |
"require": { | |
"goaop/parser-reflection": "^1.0", | |
"symfony/console": "^3.0" | |
} | |
} |
// ==UserScript== | |
// @name bitbucket.com User Script | |
// @version 0.1 | |
// @description Copies the source branch name into the PR Title. | |
// @author Brad Jones | |
// @include https://bitbucket.org/* | |
// ==/UserScript== | |
$(document).ready(function() | |
{ |