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
/** | |
* | |
*/ | |
function doIEHack() { | |
var $fixNodes = $('.pngfix'); | |
// appy filter for all image elements with a 'pngfix' class being attached | |
$fixNodes.filter('img').each(function() { | |
applyFilterOnNode($(this)); | |
}); |
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
/* global $, jQuery, window */ | |
(function($) { | |
/** | |
* | |
*/ | |
function applyFilterOnBackgroundImage($node, sizingMethod) { | |
var regex = /url\(["']*(.*?)["']*\)/; | |
var src = $node.css("background-image").replace(regex, "$1"); |
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.exports = { | |
setUp: function() { | |
}, | |
tearDown: function() { | |
}, | |
myTest: function(browser) { |
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
<?php | |
$callback = (isset($_GET['callback'])) ? $_GET['callback'] : 'callback'; | |
$result = (isset($_GET['result'])) ? (int) $_GET['result'] : 0; | |
$error = (isset($_GET['error'])) ? (int) $_GET['error'] : 0; | |
$output = array( | |
"uid" => uniqid(), | |
"result" => $result, | |
"error" => $error | |
); |
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
'use strict'; | |
// see http://qiita.com/shinnn/items/57327006390f2181f550 | |
var licenseRegexp = /^\!|^@preserve|^@cc_on|\bMIT\b|\bMPL\b|\bGPL\b|\(c\)|License|Copyright|three\.js/mi; | |
var isLicenseComment = (function() { | |
var _prevCommentLine = 0; | |
return function(node, comment) { | |
if (licenseRegexp.test(comment.value) || | |
comment.line === 1 || | |
comment.line === _prevCommentLine + 1) { | |
_prevCommentLine = comment.line; |
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
{ | |
"name": "application-name", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node app.js" | |
}, | |
"dependencies": { | |
"express": "3.4.8", | |
"jade": "*" |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**", | |
"bower_components/**" | |
], | |
"always-semicolon": true, | |
"block-indent": "\t", | |
"color-case": "lower", | |
"color-shorthand": true, |
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"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Picturefill 1.2 Example</title> | |
<link rel="stylesheet" href="css/main.css"> | |
<!--[if IE 9]><script src="js/vendor/matchMedia.js"></script><![endif]--> | |
<script src="js/vendor/picturefill.js"></script> | |
</head> |
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
// plugins | |
var gulp = require('gulp'); | |
var del = require('del'); | |
var webserver = require('gulp-webserver'); | |
var sass = require('gulp-sass'); | |
var pleeease = require('gulp-pleeease'); | |
var changed = require('gulp-changed'); | |
var usemin = require('gulp-usemin'); | |
var uglify = require('gulp-uglify'); | |
var minifyHtml = require('gulp-minify-html'); |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**", | |
"bower_components/**" | |
], | |
"always-semicolon": true, | |
"block-indent": "", | |
"color-case": "lower", | |
"color-shorthand": true, |
OlderNewer