This is now an actual repo:
This file contains hidden or 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
/* | |
Cross-browser hasOwnProperty solution, based on answers from: | |
http://stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-an-attribute-in-javascript | |
*/ | |
if ( !Object.prototype.hasOwnProperty ) { | |
Object.prototype.hasOwnProperty = function(prop) { | |
var proto = obj.__proto__ || obj.constructor.prototype; | |
return (prop in this) && (!(prop in proto) || proto[prop] !== this[prop]); | |
}; | |
} |
This file contains hidden or 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
function aj( url ){ | |
return $.ajax({ | |
url: url, | |
success: function( data ){ | |
} | |
); | |
} | |
function resolve( args ){ |
This file contains hidden or 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
(function($){ | |
var // Promise methods | |
promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ), | |
// Static reference to slice | |
sliceDeferred = [].slice; | |
if (typeof $ !== 'function') { | |
return false; | |
} else { |
This file contains hidden or 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
var socket = null; | |
function bootstrap() { | |
// 適当な図形を描画 | |
var c = document.getElementById('mycanvas'); | |
var ctx = c.getContext('2d'); | |
ctx.globalalpha = 0.3; | |
for(var i=0; i<1000; i++) { | |
ctx.beginPath(); |
This file contains hidden or 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
(function (window, undefined) { | |
var MRTN = (function() { | |
// The main FeedTheWebDev function | |
var MRTN = function(element) { | |
return new MRTN.fn.init(element, rootDoc); | |
}, | |
// Ref to root document | |
rootDoc; |
This file contains hidden or 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
AuthType Basic | |
AuthName "Auth Required" | |
AuthUserFile /path/to/.htpasswd | |
Require valid-user | |
# allow public access to the following resources | |
SetEnvIf Request_URI "(path/to/directory/)$" allow | |
SetEnvIf Request_URI "(path/to/file\.phpt)$" allow | |
SetEnvIf Request_URI "(util)$" allow | |
Order allow,deny | |
Allow from env=allow |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
This file contains hidden or 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> | |
<!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Breakpoint detection test</title> | |
<style type="text/css" media="screen"> | |
@media screen and (min-width: 320px) { | |
#page:after { | |
content: 'smallest'; /* represent the current width-bracket */ |
This file contains hidden or 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
<?xml version="1.0"?> | |
<project name="waferthin.com" description="Targets for maintaining and deploying the waferthin.com web site." default="deploy"> | |
<!-- See book here: http://www.packtpub.com/expert-php-5-tools/book --> | |
<!-- initialize timestamp that will be used in naming of various files & directories --> | |
<tstamp/> | |
<target name="deploy" depends="get-env,create-skeleton,svn-export,stamp-config,disp-maint,backup-db,deploy-db,publish-site" description="Deploy the site to the web server and perform necessary build and upgrade tasks."> | |
</target> | |
<target name="get-env" description="get the environment for an action"> |
OlderNewer