Dropbox download link
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
/*! | |
* tram.js v0.8.1-global | |
* Cross-browser CSS3 transitions in JavaScript | |
* https://github.com/bkwld/tram | |
* MIT License | |
*/ | |
/*! | |
* P.js | |
* A lightweight class system. It's just prototypes! | |
* http:// github.com/jayferd/pjs |
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() { | |
function AnimatoinObject (obj, steps, duration, delay, itrations) { | |
var _this = this; | |
_this.obj = obj; | |
_this.steps = steps; | |
_this.duration = duration; | |
_this.delay = delay; | |
_this.itrations = itrations; |
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
/* | |
* transform: A jQuery cssHooks adding cross-browser 2d transform capabilities to $.fn.css() and $.fn.animate() | |
* | |
* limitations: | |
* - requires jQuery 1.4.3+ | |
* - Should you use the *translate* property, then your elements need to be absolutely positionned in a relatively positionned wrapper **or it will fail in IE678**. | |
* - transformOrigin is not accessible | |
* | |
* latest version and complete README available on Github: | |
* https://github.com/louisremi/jquery.transform.js |
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() { | |
$(document).ready(function () { | |
for (var i=1; i<=4; i++) { | |
$('[data-animation-'+i+']').each(function(index, e) { | |
var trigger = $(e).attr('data-animation-trigger-'+i); | |
var animationToRemove = $(e).attr('data-animation-to-remove-'+i); | |
var animationToAdd = $(e).attr('data-animation-type-'+i); |
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
@font-face { | |
font-family: "Material-Design-Icons"; | |
src: url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.eot?#iefix") format("embedded-opentype"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.woff2") format("woff2"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.woff") format("woff"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.ttf") format("truetype"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.svg#Material-Design-Icons") format("svg"); | |
font-weight: normal; | |
font-style: normal; } | |
[class^="mdi-"], [class*=" mdi-"] { | |
font-family: "Material-Design-Icons"; | |
speak: none; | |
font-style: normal; |
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 printRoot (folderPath) { | |
console.log("----" + folderPath); | |
sh.cd(folderPath); | |
var files = sh.ls() || []; | |
for (var i=0; i<files.length; i++) { | |
var file = files[i]; | |
if (file.match(/.*\.js/)) | |
console.log(file); | |
else { |
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
var sh = require('shelljs'); | |
function annotateFile (filePath) { | |
console.log('annotate ' + filePath); | |
sh.exec('ng-annotate -a ' + filePath + ' -o ' + filePath); | |
} | |
function annotateFolder (folderPath) { | |
console.log("annotate Folder " + folderPath); | |
sh.cd(folderPath); |
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 ruby | |
## return the average of array | |
# @arr array of numbers to return its average | |
def getAverage (arr) | |
return arr.inject{ |sum, el| sum + el }.to_f / arr.size | |
end | |
## return the median of array | |
# @arr array of numbers to return its median |
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
<div class="website-content"> | |
<h1><?php printf( __( 'Search Result For: %s', 'YOUR_THEME_NAME' ), '<span>"' . get_search_query() . '"</span>' ); ?></h1> | |
<div class="search-result"> | |
<?php if ( have_posts() ) : ?> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<a href="<?php the_permalink(); ?>"><?php the_title() ?></a> | |
<?php endwhile; endif; ?> | |
<?php else: ?> | |
<h2> | |
<?php printf( __( 'No Results Found :(', 'YOUR_THEME_NAME' ) ) ?> |
NewerOlder