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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>Disables the home button.</string> | |
<key>PayloadDisplayName</key> |
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
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf | |
fastcgi: /usr/local/sbin/php-fpm | |
db: /usr/local/bin/mysqld |
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
$em-base: 16px !default; | |
@function toEM($px) { | |
@return $px / $em-base * 1em; | |
} |
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
# http://www.niallflynn.com/seo-news/remove-file-extension-from-urls/ | |
<IfModule mod_rewrite.c> | |
AddType text/x-component .htc | |
RewriteEngine On | |
RewriteBase / | |
# remove .php; use THE_REQUEST to prevent infinite loops | |
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP | |
RewriteRule (.*)\.php$ $1 [R=301] | |
# remove index |
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
function ievm { | |
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="$1" bash | |
} |
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
// XSS HTTP Treatment | |
add_filter('init', 'xssTreatment'); | |
function xssTreatment() { | |
foreach(array($_GET, $_POST, $_REQUEST) as $httpConst) XSSSanitization( $httpConst ); | |
} | |
function XSSSanitization(&$param) { | |
if(!is_array( $param ) && is_string( $param ) ) $param = filter_var($param, FILTER_SANITIZE_STRING); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youralloweddomain.com [NC] | |
RewriteRule \.(jpeg|jpg|gif|pdf)$ - [NC,F,L] | |
</IfModule> |
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
# More info at https://github.com/guard/guard#readme | |
guard 'sass', :input => 'sass', :output => 'css', :style => :compressed, :no => :cache | |
guard :livereload do | |
watch %r{.+\.(php|html|css|js)$} | |
end | |
guard :concat, type: 'js', files: %w(), input_dir: 'js', output: 'js/app' |
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
@interface Person : NSObject | |
+(BOOL) walking; | |
@end | |
@interface Philip : Person | |
+(BOOL) walking; | |
@end | |
@implementation Philip | |
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
#import "Kiwi.h" | |
#import "User.h" | |
SPEC_BEGIN(User) | |
describe(@"User", ^{ | |
context(@"User creation", ^{ | |
it(@"it should have a name", ^{ | |
User *user = [[User alloc] init]; | |
[user setName: @"Junio Vitorino"]; |