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 check_SPR(){ | |
if($_POST['msisdn'] != ""){ | |
$_POST['msisdn'] = trim($_POST['msisdn']); | |
$_POST['imsi'] = trim($_POST['imsi']); | |
include_once(INC_DIR . '/util/xml_parser.php'); | |
include_once(INC_DIR . '/util/util.php'); | |
$db = ADONewConnection('oci8po'); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
$ node -v | |
$ npm -v | |
$ gulp -v |
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
{ | |
"name": "mygulp", | |
"version": "1.0.0", | |
"description": "mencicipi gulpjs", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Sastra Nababan", | |
"license": "ISC" |
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
// Konfigurasi | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
// Task `default` | |
gulp.task('default', function(){ | |
console.log ('code untuk task default'); | |
}); |
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
// Konfigurasi | |
var gulp = require('gulp'); | |
// Compile SCSS | |
gulp.task('sass', function () { | |
return gulp.src('./app/scss/*.scss') | |
.pipe(sass()) | |
.pipe(gulp.dest('./app/css')) | |
}); | |
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
// Konfigurasi | |
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
// Compile SCSS | |
gulp.task('sass', function () { | |
return gulp.src('./app/scss/*.scss') | |
.pipe(sass()) |
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
// Konfigurasi | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
var plumber = require('gulp-plumber'); | |
var notify = require('gulp-notify'); | |
// Compile SCSS | |
gulp.task('sass', function () { |
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
// Clean Build Directory | |
gulp.task('cleanBuild',function(){ | |
return gulp.src('build', {read: false}) | |
.pipe(clean()); | |
}); |
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
// Deploy to Build Directory | |
gulp.task('deploy',['cleanBuild'], function(){ | |
// optimasi css | |
var cssOptimize = gulp.src('app/css/*.css') | |
// .pipe(gutil.log('css Optimize Start')) | |
.pipe(cssnano()) | |
// .pipe(gutil.log('css Optimize Finish')) | |
.pipe(gulp.dest('build/css/')); |
OlderNewer