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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType application/pdf "access 1 month" |
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
$ mkdir myproject | |
$ cd myproject | |
$ virtualenv venv | |
New python executable in venv/bin/python | |
Installing distribute............done. | |
Now, whenever you want to work on a project, you only have to activate the corresponding environment. On OS X and Linux, do the following: | |
$ . venv/bin/activate |
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
let smartAlbums = PHAssetCollection.fetchAssetCollectionsWithType(.SmartAlbum, subtype: .AlbumRegular, options: nil) // Here you can specify Photostream, etc. as PHAssetCollectionSubtype.xxx | |
smartAlbums.enumerateObjectsUsingBlock( { | |
if let assetCollection = $0.0 as? PHAssetCollection { | |
print("album title: \(assetCollection.localizedTitle)") | |
// One thing to note with Smart Albums is that collection.estimatedAssetCount can return NSNotFound if estimatedAssetCount cannot be determined. As title suggest this is estimated. If you want to be sure of number of assets you have to perform fetch and get the count like: | |
let assetsFetchResult = PHAsset.fetchAssetsInAssetCollection(assetCollection, options: nil) | |
let numberOfAssets = assetsFetchResult.count | |
let estimatedCount = (assetCollection.estimatedAssetCount == NSNotFound) ? -1 : assetCollection.estimatedAssetCount |
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
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode |
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 | |
// Register Custom Post Type | |
function team_member_post_type() { | |
$labels = array( | |
'name' => 'Employees', | |
'singular_name' => 'Employee', | |
'menu_name' => 'Employees', | |
'name_admin_bar' => 'Employee', | |
'archives' => 'Employee Archives', |
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="container bootstrap-navbar"> | |
<nav class="navbar navbar-default navbar-static-top"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> |
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 | |
/** | |
* Sage includes | |
* | |
* The $sage_includes array determines the code library included in your theme. | |
* Add or remove files to the array as needed. Supports child theme overrides. | |
* | |
* Please note that missing files will produce a fatal error. | |
* | |
* @link https://github.com/roots/sage/pull/1042 |
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
.navbar-brand { | |
padding: 0px; | |
} | |
.navbar-brand>img { | |
height: 100%; | |
padding: 15px; | |
width: auto; | |
} | |
.bootstrap-navbar .navbar-brand { |
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
$palette: orangecyan; | |
@if $palette == bluegrey { | |
//* https://www.materialpalette.com/blue/grey | |
$primary-color-dark: #1976D2; | |
$primary-color: #2196F3; | |
$primary-color-light: #BBDEFB; | |
$primary-color-text: #FFFFFF; | |
$accent-color: #9E9E9E; | |
$primary-text-color: #212121; |