Skip to content

Instantly share code, notes, and snippets.

View Acconut's full-sized avatar

Marius Acconut

View GitHub Profile
anonymous
anonymous / index.html
Created November 29, 2014 13:25
// source http://jsbin.com/hahopivaqa
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
canvas {
filter: url(#svgBlur);
filter: blur(1px);
}
@morganrallen
morganrallen / _README.md
Last active January 15, 2023 19:41
Janky Browser

JankyBrowser

The only cross-platform browser that fits in a Gist!

One line install. Works on Linux, MacOSX and Windows.

Local Install

$&gt; npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
anonymous
anonymous / -
Created October 27, 2014 11:26
Image: ./input-87d36fbe8c87ea03cf7fc7a4907202be.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 1241x3747+0+0
Resolution: 240x240
Print size: 5.17083x15.6125
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
anonymous
anonymous / 01.configure
Created October 5, 2014 19:08
2014-10-05 15:03:47 -0400
./configure
--disable-osx-universal-binary
--prefix=/home/brewer/.linuxbrew/Cellar/imagemagick/6.8.9-7
--disable-dependency-tracking
--enable-shared
--disable-static
--without-pango
--with-modules
anonymous
anonymous / 01.configure
Created October 5, 2014 18:58
2014-10-05 14:34:40 -0400
./configure
--prefix=/home/brewer/.linuxbrew/Cellar/ghostscript/9.15
--disable-cups
--disable-compile-inits
--disable-gtk
--with-system-libtiff
--without-x
@karlwestin
karlwestin / errorhandler.js
Created July 31, 2014 09:22
simple window.onerror handler
function errorHandler(msg, url, line, column, err) {
// firefox bug to watch for 5 arg error handler
// https://bugzilla.mozilla.org/show_bug.cgi?id=630464
/*
* most browsers don't give column number,
* but chrome can do it sometimes
*/
if(typeof column == "object") {
err = column;
// THIS ISN'T EVEN MY FINAL FORM
console.log((function (ctxt) {
cats: {
with(ctxt) {
try {
return cats
} finally {
break cats
}
}
@niw
niw / libpng_test.c
Last active November 12, 2023 19:54
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng16 libpng_test.c
@gr2m
gr2m / call_for_contributors.md
Last active December 17, 2015 00:19
Hoodie empowers frontend developers to build fully capable apps, without thinking backend. We've put a lot of thoughts into its API and made a proof-of-concept implementation, but now want to reach out to gather opinions on how hoodie.js should be implemented "the proper JavaScript way".

hoodie.js is a library to abstract common backend tasks in form of frontend developer friendly JavaScript methods.

The API is what we care most about. No matter of how complex are behind the curtain, hoodie.js has to remain as simple as jQuery.

The current implementation is done with CoffeeScript, for reasons. But we want to move to make a proper JavaScript implementation and want to invite you to help us:

  • what's your opinion on how the hoodie.js modules should be structured, the "JavaScript way"?
  • what are libraries we should look into / learn from?
  • this is your chance: do you want to help migrating hoodie.js to JavaScript? Raise your hand
@shanselman
shanselman / gist:5422230
Last active March 28, 2024 10:33
Evil Blog Comment Spammer just exposed his template through some error and the whole thing showed up in my comments.
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|