2018-11-22
- Hugo
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "Organization", | |
"@id": "#organization", | |
"name": "Outlyer", | |
"url": "https://www.outlyer.com/", | |
"sameAs": [ | |
"https://github.com/outlyerapp", | |
"https://twitter.com/outlyer", |
Syncing Sublime Text 2 Settings via Dropbox | |
I just recently purchased Sublime Text 2 and thought I would do some digging into syncing the config files via Dropbox (affiliate link). There’s no real way of changing where Sublime looks for it’s file, but we can skirt this issue using symlinks. I run Sublime on Mac and a Windows machine, so I’ll post directions for both platforms. | |
WINDOWS | |
(has been tested on Sublime Text 2 build 2165 on Windows 7) | |
First, create a folder in your Dropbox path where you’d like to put your Sublime files. I used |
Wednesday, August 24, 2011 | |
Configure PhpStorm to Auto-complete CakePHP Models, Views, and Controllers | |
After playing around a bit today I finally figured out how to get PhpStorm to auto-complete methods for models and controllers. Here's what you need to do. | |
Removing Multiple Definitions | |
First, let's tackle the multiple definitions problem that we see below. |
<?php | |
/** | |
* Class CSV | |
* | |
* Export any wordpress table in CSV format | |
* | |
* @author Hugo Dias <hugoodias@gmail.com> | |
* @since 2.0.0 | |
* @example $csv = new CSV('posts'); // Will export wp-posts table | |
* |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} !=on | |
RewriteCond %{HTTP_HOST} !^www\..+$ [NC] | |
RewriteCond %{HTTP_HOST} !=localhost [NC] | |
RewriteCond %{HTTP_HOST} !=127.0.0.1 | |
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine on |
I hereby claim:
To claim this, I am signing this object:
<?php | |
if ( ! function_exists( 'reading_time' ) ): | |
/** | |
* Display post reading time in minutes | |
* | |
* @param $post_content | |
* | |
* @return string | |
*/ |
# lib/custom_logger.rb | |
class CustomLogger | |
class << self | |
attr_accessor :logger | |
delegate :info, :warn, :debug, :error, :to => :logger | |
end | |
end |
{ | |
"name": "awesome-btn", | |
"version": "1.0.0", | |
"description": "", | |
"main": "build/index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "webpack --watch", | |
"build": "webpack" | |
}, |