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
angular.module('mymodule').filter('ucfirst', function() { | |
return function(input,arg) { | |
return input.replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); }); | |
}; | |
}); |
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
installing node on ubuntu 12.0 | |
sudo apt-get update | |
sudo apt-get install python-software-properties python g++ make | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo npm install npm -g | |
Install Mongo |
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
MEAN Stack - AWS | |
Installing NodeJS on CenOS/AWS Linux AMI | |
yum -y update | |
yum -y groupinstall "Development Tools” | |
yum -y install screen | |
cd /usr/src | |
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz | |
tar zxf node-v0.10.4.tar.gz | |
cd node-v0.10.4 |
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
package com.webninja.usjr.rest; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.app.FragmentManager; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.Window; |
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 | |
/* | |
Plugin Name: Plugin for Wordpress | |
Plugin URI: | |
Description: A Sample Class Plugin for Wordpress |
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
/* @projectDescription jQuery Serialize Anything - Serialize anything (and not just forms!) | |
* @author Bramus! (Bram Van Damme) | |
* @version 1.0 | |
* @website: http://www.bram.us/ | |
* @license : BSD | |
* original file : http://www.bram.us/2008/10/27/jqueryserializeanything-serialize-anything-and-not-just-forms/ | |
* modified by Keithics : keith@webninjamobile.com | |
* usage jQuery('.class_input').serializeAnything() | |
*/ | |
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 | |
// Resizer and Image Manipulation | |
// Based on: http://forums.laravel.com/viewtopic.php?id=2648 | |
public function post_edit_logo($id) | |
{ | |
$rules = array('logo' => 'image'); | |
$input = Input::file('logo'); | |
$validation = Validator::make($input, $rules); | |
//file not valid |
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
<table> | |
<tr> | |
<td>I Lead: <input type="checkbox" id="toggle_select" /></td> | |
</tr> | |
<tr> | |
<td>We Follow :<input type="checkbox" class="toggle_type" /></td> | |
</tr> | |
<tr> | |
<td>We Follow :<input type="checkbox" class="toggle_type" /></td> | |
</tr> |
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 | |
function wpcebu_customize_register( $wp_customize ){ | |
// Full Name | |
$wp_customize->add_section( 'content', | |
array( | |
'title' => __( 'Full Name', 'wpcebu2' ), //Visible title of section | |
) | |
); |
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 | |
function wpcebu_customize_register( $wp_customize ){ | |
// Full Name | |
$wp_customize->add_section( 'content', | |
array( | |
'title' => __( 'Full Name', 'wpcebu2' ), //Visible title of section | |
) | |
); |
OlderNewer