- Fonts: text fonts or icon fonts
- Pictures under creative common and free licences
- Twitter Bootstrap cool stuff
- Javascript
- Other stuff
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 insertThumbnail($data, $postArr) { | |
if(!isset($postArr['ID'])) { | |
return $data; | |
} | |
$postId = $postArr['ID']; | |
$metaKey = 'you-post-meta-video-key'; // the custom meta key | |
// If video and video format | |
if(isset($postArr[$metaKey]) && ''!==$postArr[$metaKey] ) { |
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
/* | |
* copy remote web file on local | |
* | |
* usage: | |
* require('urlToFile')('http://domain.tld/image.jpg', '/local/path/image.jpg', function() {console.log('success !');}, function(message) {console.log(message);}); | |
*/ | |
var http = require('http'); | |
var fs = require('fs'); |
## Utils
- gulp-load-plugins: html include with vars and filters
- gulp-util: beep, log, colors...
- gulp-task-listing: list and display all the tasks and subtasks set in gulp.
- gulp-if: set condition when piping
## Files
- gulp-sym: quick symlinks
- gulp-rename: easily rename file by adding prefix, suffix, change extension, ...
- gulp-concat: concat your files
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
/** | |
* hasNestedProperties check if an object has the nested | |
* properties passed in params | |
* | |
* @param {Object} obj object we want to test | |
* @param {String} properties nested property we want | |
* @return {Boolean} either the object has these | |
* nested properties or not | |
*/ | |
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
alias gith='echo "=== Remote ===" && git remote -v && echo "" && echo "=== Branch ===" && git branch -v && echo "" && echo "=== Latest commits ===" && git log --pretty="%cr (%cn) %s" -n 15 --date=relative' |
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 request = require('request') | |
, path = require('path') | |
, fs = require('fs') | |
, url = "https://api.github.com/users/thomastraum/gists" | |
, savepath = './gists'; | |
request(url, function (error, response, body) { | |
if (!error && response.statusCode == 200) { |
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
alias gith='echo "=== Remote ===" && git remote -v && echo "" && echo "=== Branch ===" && git branch -v && echo "" && echo "=== Latest commits ===" && git log --pretty="%cr (%cn) %s" -n 15 --date=relative' |
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
@highdpi: ~"(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)"; | |
.retina-bg(@path) { | |
background-image: url(@path); | |
@at2x_path: ~`@{path}.replace(/\.\w+$/, function(match) { return "@2x" + match; })`; | |
@media @highdpi { | |
background-image: url("@{at2x_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
<script type='application/javascript' src='/path/to/fastclick.js'></script> | |
<script type='application/javascript'> | |
window.addEventListener('load', function() { | |
new FastClick(document.body); | |
}, false); | |
</script> |
OlderNewer