A Pen by John Hunter on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/joyent/node/blob/master/deps/uv/include/uv.h#L63 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>How browsers set vertical spacing</title> | |
<style> | |
body { | |
margin: 20px; | |
font-family: Times,'Times new roman'; | |
font-size: 16px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Set browser forking classes on html element. Can be executed as soon as jQuery is loaded. | |
@dependency jQuery 1.4 | |
flags are: webkit, opera, msie, mozilla, (safari flag not used), os-win, os-mac | |
*/ | |
(function(flags, app) { | |
$.each($.browser, function(k, v) { | |
if (v === true && k !== 'safari') flags.push(k); | |
}); | |
os('Win', 'os-win'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* FancyBox - jQuery Plugin | |
* Simple and fancy lightbox alternative | |
* | |
* Examples and documentation at: http://fancybox.net | |
* | |
* Copyright (c) 2008 - 2010 Janis Skarnelis | |
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. | |
* | |
* Version: 1.3.4 (11/11/2010) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Module Date.to - Static Date methods for formatting js Date objects to strings. | |
@author John Hunter | |
created 2010-03-30 | |
use: Date.to.ddmmyyyy(new Date(), '^') => '30^03^2010' | |
*/ | |
Date.to = (function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ajax-error</title> | |
</head> | |
<body> | |
<pre id="output"></pre> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bookmarklets</title> | |
<style> | |
body { | |
background: #eee; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
# John Hunter <https://github.com/johnhunter> | |
$path = getenv('TM_DROPPED_FILE'); | |
$path_parts = pathinfo($path); | |
$info = getimagesize($path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
# John Hunter <https://github.com/johnhunter> | |
$path = getenv('TM_DROPPED_FILE'); | |
$path_parts = pathinfo($path); | |
$info = getimagesize($path); |
OlderNewer