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
// Defines prefixed versions of the | |
// transitionEnd event handler | |
transitionFinishedEvents = { | |
'WebkitTransition' : 'webkitTransitionEnd', | |
'MozTransition' : 'transitionend', | |
'OTransition' : 'oTransitionEnd', | |
'msTransition' : 'msTransitionEnd', | |
'transition' : 'transitionEnd' | |
}; | |
// Define the correct transition event for this UA |
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
/* | |
Example of using parametrised multiple bounds in Java 7. | |
This is just showing how stuff is connected - it really does not make any sense in itself. | |
Compiles with JDK7. | |
*/ | |
import java.util.ArrayList; | |
import java.util.List; | |
// parametrised interfaces | |
interface IF1<T>{T returnIt();} |
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
[31m 4 failing[0m | |
[0m 1) Kit should parse imports: | |
[0m[31m Error: Line 1 in imports.kit: You're attempting to import a file that does not exist in the specified location: someFile.kit" -->[0m[90m | |
at Kit._findFile (C:\tmp\node-kit\lib\node-kit.js:365:11) | |
at Kit._handleImport (C:\tmp\node-kit\lib\node-kit.js:316:21) | |
at Kit._compileToken (C:\tmp\node-kit\lib\node-kit.js:285:35) | |
at Kit.compile (C:\tmp\node-kit\lib\node-kit.js:110:14) | |
at Kit.toString (C:\tmp\node-kit\lib\node-kit.js:122:28) | |
at kit (C:\tmp\node-kit\lib\node-kit.js:21:25) |
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
// Grunt file that shows how dynamic config (and option!) values | |
// are not used in the grunt-contrib-concat task. Run using 'grunt' | |
module.exports = function(grunt){ | |
grunt.initConfig({ | |
concat : { | |
foo : { | |
src: '<%= grunt.config.get("myfiles") %>', | |
dest : 'outfile.txt' |
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
#!/bin/sh | |
check() { | |
cd develop && npm install && grunt sanity-checks | |
} | |
if [[ $(git symbolic-ref --short HEAD) == 'internal' ]]; then | |
echo On internal branch - testing commit | |
check | |
fi |
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
#!/usr/bin/env python | |
########################################################################## | |
# Copyright 2009 Broadcom Corporation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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
/** | |
* HACKED VERSION of 1.4.9 - has native console.log formatting of objects | |
* | |
* | |
* Copyright 2014 Tim Down. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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
/* | |
* Utility "class" extending Array with lookup functions | |
* | |
* Can do everything an Array can, including indexing by brackets, | |
* use in loop constructions (for, while), etc | |
* | |
* Example: | |
* var foo = new Foo({id : 1}) | |
* foo.getId() === 1; // => true | |
* var c = new Collection(); |
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
# space_remover.py | |
# | |
# Script to remove spaces at the end of folder or file names | |
# This is a problem when creating a folder on a platform other | |
# than Windows and sharing that folder with a Windows user | |
# The Windows user will then not be able to work with files | |
# within that folder. | |
# The solution is simply to remove the space at the end of | |
# the folder name, but this is not possible to do through | |
# the Windows GUI interface. Normal "CMD" also has problems. |
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
#!/usr/bin/perl -w | |
# mp3_make_comp | |
# Max Baker | |
# 4/29/09 | |
# | |
# This script will set the I-Tunes Compilation Tag (TCMP) | |
# on Files passed to it. If no files are passed, it works on *.mp3 in the current directory. | |
# | |
# found here: http://warped.org/blog/2009/05/02/itunes-setting-the-compilation-flag-on-mp3s-using-perl/ | |
OlderNewer