Create documentation for your projects. Like so:
- Up/Down - Previous/Next Gist
- Ctrl+e - Edit a selected Gist
- Ctrl+s - Save Gist
import { Directive } from '@angular/core'; | |
import { ViewController } from 'ionic-angular'; | |
@Directive({ | |
selector: '[hideTabs]' | |
}) | |
export class HideTabsDirective { | |
constructor(private viewCtrl: ViewController) { | |
// hide tabs when view loads |
<?php | |
/** | |
* Duplicate this file as many times as you would like, just be sure to change the | |
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
##Getting Started with Ionic Framework
Ionic is a powerful, beautiful and easy to use open source front-end framework built on top of AngularJs (a client side javascript framework), Sass Syntactically Awesome Style Sheets Apache Cordova for and developing hybrid (cross platform) mobile apps.
Ionic's ultimate goal is to make it easier to develop native mobile apps with HTML5, also known as Hybrid apps.
Install nodejs: http://nodejs.org/
npm install -g cordova ionic
Articles and resources By Darlan Alves on Friday, July 4, 2014 at 6:49pm Please contribute to this list with good articles, well done app samples, test cases and so on!
Clickable List Item http://learn.ionicframework.com/formulas/navigation-and-routing-part-2/ Exclude Files from Ionic Framework Build http://bradb.net/exclude-files-from-ionic-framework-build/ Ionic Framework generator https://github.com/diegonetto/generator-ionic
var count = 2; // How many photos do you wanna display | |
var igToken = "371393934.dba0291.7da640d4c8fc4ff3a205f2e290eae6f1"; // DON'T USE MY ACCESS TOKEN. Generate your own, http://instagram.com/developer | |
var igUserId = "371393934"; // This is easy to generate, I've made a thing http://themes.edada.ms/instagram-auth | |
$.ajax({ | |
url: 'https://api.instagram.com/v1/users/'+igUserId+'/media/recent/?access_token='+igToken+'&callback=?', | |
data: { | |
'count': count | |
}, | |
dataType: "jsonp", |
<?php | |
// http://johnford.is/programmatically-pull-attachments-from-wordpress-posts/ | |
// http://www.wprecipes.com/how-to-show-wordpress-post-attachments | |
// get all of the images attached to the current post | |
function _get_images($size = 'thumbnail') { | |
global $post; | |
$photos = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); |