- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
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
/** | |
* Several functions relatting to blurring images on uploaded. | |
* @see https://codeable.io/community/how-to-watermark-wordpress-images-with-imagemagick/ | |
*/ | |
add_image_size( 'background-image-blurred', 1920, 1080, true ); | |
function generate_blurred_image( $meta ) { | |
$time = substr( $meta['file'], 0, 7); // Extract the date in form "2015/04" | |
$upload_dir = wp_upload_dir( $time ); // Get the "proper" upload dir |
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 | |
if (!is_blog_installed()) { return; } | |
$my_server_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : ''); | |
$my_server_name = (!empty ($my_server_port) ?($_SERVER['SERVER_NAME'] . $my_server_port) : $_SERVER['SERVER_NAME'] ); | |
if ('http://' . $my_server_name . '/wp' == get_option('home')) { | |
update_option('siteurl', 'http://' . $my_server_name . '/wp'); | |
update_option('home', 'http://' . $my_server_name); | |
update_option('upload_path', $_SERVER['DOCUMENT_ROOT'] . '\media'); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
The CSSTidy package for SublimeText 2 works great for toggling between different CSS formats, but none of the default options output CSS consistent with the Drupal CSS coding standards with selectors, braces and properties indented and formatted like so:
selector {
property: value;
}
CSSTidy allows you to add your own templates, but the documentation is sparse, then there's the matter of the Sublime Text 2 integration. If I hadn't been deeply procrastinating, I would not have had th patience to figure it all out. Here's what to do:
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
Follow these steps | |
============ | |
1) Create a folder on local disk Eg: C:\Users\keerthip\Documents\Dropbox | |
2) Create a Drive Letter Mapping eg:(H:) to the folder path in windows with following command | |
subst H: C:\Users\keerthip\Documents\Dropbox | |
3) Install Dropbox desktop software in advanced Mode. | |
Select the new local drive H: and sync either selective folders or all folder to local drive ( which is original folder path) | |
4) Wait till content is fully synced from web account | |
5) Pause Syncing and Exit Dropbox | |
6) Delete local folder drive mapping with following command |