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
div, | |
%test, | |
.test, | |
#test-#{$test}, | |
.test:not(.test), | |
.test:not(div), | |
.test[test] {} | |
&-test, | |
&.test { | |
@extend %test, .test; |
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
<?php | |
/** | |
* Add a big fucking warning when the client uploads a PNG when they should | |
* be using a JPG | |
*/ | |
function varga_62341_admin_png_warning() { | |
global $post_type; | |
echo '<script>var varga_62341_post_type="'.$post_type.'";</script>'; | |
?> |
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 { Injectable } from '@angular/core'; | |
import { Http, Headers, RequestOptions } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/Rx'; | |
@Injectable() | |
export class ApiService { | |
private errorObserver: any; | |
public error: any; |
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 { StatusBar, Splashscreen, Keyboard } from 'ionic-native'; |
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
$('.flickity-slider').flickity({ | |
draggable: Modernizr.touchevents | |
}); |
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
<?php | |
// call this script using a GET parameter, eg: http://your-domain.com/twitter-cache.php?screen_name=your_twitter_username | |
error_reporting( 0 ); // don't let any php errors ruin the feed | |
$username = $_GET['screen_name']; | |
$number_tweets = 4; | |
$feed = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={$username}&count={$number_tweets}&include_rts=1"; | |
$cache_file = dirname(__FILE__).'/cache/'.'twitter-cache-'.$username; |
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
<?php | |
/* usage | |
* | |
* wp_nav_menu( array( | |
* 'theme_location' => 'primary', | |
* 'sub_menu' => true, | |
* 'root_id' => id_of_menu_item | |
* ) ); | |
*/ |
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
<?php | |
/** wp_nav_menu( array( | |
'theme_location' => 'primary', | |
'sub_menu' => true | |
) ); | |
or | |
wp_nav_menu( array( |
NewerOlder