If you are not sure whether you already have running try this
- Open up your command prompt
- type
node --version
and you will see the current node version - type
npm --version
and you will see the current npm version
#!/bin/bash | |
echo "Laravel 4 Project Builder" | |
echo -n "What is the project name? " | |
read -e PROJECT | |
echo -n "Which folder will I be working on? [eg: /Users/foo/bar] " | |
read -e DIR |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
shell: { | |
myth: { | |
command: function() { | |
return 'myth css/myth/input.css css/style.css'; | |
}, | |
options: { | |
stdout: true, |
Event::fire('foo', ['another-theme']); | |
Event::listen('foo', function($theme) | |
{ | |
Orchestra\Theme::setTheme($theme); | |
}); |
var gulp, sass, watch, minifyCSS, plumber; | |
gulp = require('gulp'); | |
sass = require('gulp-sass'); | |
minifyCSS = require('gulp-minify-css'); | |
watch = require('gulp-watch'); | |
plumber = require('gulp-plumber'); | |
gulp.task('compile-sass', function() { | |
gulp.src('./sass/*.scss') |
/** | |
* @jsx React.DOM | |
*/ | |
var CampaignSliderItemComponent = React.createClass({ | |
render: function() { | |
return ( | |
<div className="slide"> | |
<img src={this.props.image} width="688" height="242" alt="image description" /> | |
<div className="text"> | |
<h2>{this.props.name}</h2> |
//in function.php file | |
function getGeolocationData ($foo, $bar) { | |
// run wp-query here to get the data | |
} | |
// call inside template page | |
<?php echo getGeolocationData('var1', 'var2'); ?> |
<?php include_once("../_config.php"); | |
$appcate = $_SESSION['jenis_pelanggan']; | |
$sql = DBquery("SELECT a.id_pelanggan,a.nama,b.id_pelanggan,alamat1,alamat2,poskod,bandar,id_negeri,no_tel,no_fax, | |
FROM li_pelanggan a,li_alamat b | |
WHERE a.id_pelanggan = '" . $_SESSION['id_pelanggan'] . "' | |
AND a.id_pelanggan = b.id_pelanggan | |
AND a.jenis_pelanggan = '".$appcate."'"); |
<?php | |
use Ochestra\Model\User; | |
use Orchestra\Support\Facades\Notifier; | |
trait NotifiableTrait { | |
/** | |
* Send email notification to user | |
* |
<?php namespace Eisai\Support\Traits; | |
use Rhumsaa\Uuid\Uuid; | |
use Illuminate\Support\Facades\File; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
trait UploadableTrait { | |
/** | |
* [store description] |