Skip to content

Instantly share code, notes, and snippets.

Route::get('an/{slashData?}', function($slashData = '') {
// $input_lines="any word here related to #English must #be replaced.";
$pageid = stripslashes($slashData);
$pattern = '/\//';
$newpageid = preg_replace($pattern,' ', $pageid);
$titlecase = ucwords($newpageid);
$namespace = preg_replace('/\s+/', '\\', $titlecase);
// Route::resource($slashData, $namespace);
// return redirect($slashData);
// return preg_replace('/\s+/', '\\', $titlecase);
//https://codepen.io/anon/pen/gmeewN
//https://codepen.io/anon/pen/RpyVag
//https://codepen.io/anon/pen/QprqKZ
//https://codepen.io/anon/pen/MpPOMg
//https://codepen.io/anon/pen/VpEqOE
//https://codepen.io/anon/pen/MpzOEP
//https://www.webpackbin.com/bins/-Kgc4ylGu6eVLHnUQbyA
$scope.elements = [
{ type: 'text', id: 'DJDK-343434', label: 'edit label', value: 'holle' }
]
@syads321
syads321 / laravel-shortcut.txt
Last active December 9, 2016 07:43
Laravel command list
php artisan make:controller BookController
php artisan make:model --migration Post
//Make migration template and model named Post at same time
Route::get($uri, $callback);
Route::post($uri, $callback);
//Scope Model
class User extends Model {
https://s04.solidfilesusercontent.com/ZjI5NTA4MDJjYjVlODU1ODhlYTNlMTFiYTJiNzU3ZGM3M2RhYTRlOToxYzVBNEc6S09JZWtWMi1NNEp1ZGxjcUhQYlJtYVg2ZFlR/YAN72jnwnLmWA/InDesignPortable_10.2_32bit_64bit.paf.exe
@syads321
syads321 / app.js
Created September 27, 2016 03:01
Cordova Download Multiple Files
angular.module('starter', ['ionic','ngCordova'])
.config(['$compileProvider', function($compileProvider) {
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|content|file|assets-library):/);
}])
.controller('Main', ["$ionicPlatform", "$cordovaFileTransfer", "$q", "$scope",
function($ionicPlatform, $cordovaFileTransfer, $q, $scope) {
console.log("running Main controller");
$scope.images = [];
http://codepen.io/anon/pen/qamOpX
https://codepen.io/anon/pen/bwWGKP
https://s-media-cache-ak0.pinimg.com/564x/3f/bc/91/3fbc91364fd362eb993d071419d782b9.jpg
http://66.media.tumblr.com/f23296c7262ab91b1fc0a8e5ec51fb8d/tumblr_n8imjtfqAd1r7g5u4o1_1280.png
https://s-media-cache-ak0.pinimg.com/564x/f8/69/83/f869833181e081127161187f56bc9741.jpg
https://s-media-cache-ak0.pinimg.com/564x/6f/b7/9d/6fb79db34eaf8c1eb762e1f880d4206a.jpg
Aplikasi manajemen antrian.
Mengubah smartphone menjadi mesin antrian yang dikendalikan oleh smartphone.
1. Daftarkan dan tambahkan nama tempat antrian anda.
2. Login menggunakan user atw email anda pada kedua smarphone.
3. Pada halaman daftar antrian, pilih nama antrian anda.
4. Pilih mode untuk smartphone yang diinstall
Mode kiosk, mode yang digunakan pengunjung. Menmbunyikan suara nomor antrian yang akan diproses berikutnya dan tombol 'ambil antrian' ditekan akan mengambil dan mencetak tiket antrian bagi pengunjung.
Mode operator digunakan untuk memproses antrian. Tombol 'Proses Antrian' untuk memproses Antrian. Tombol 'Panggil Ulang' untuk memanggil ulang antrian.
Tiap antrian terdapat kode unik yang digunakan untuk memeverifikasi pengunjung yang ambil antrian lewat web.
Konfigurasi Printer.
http://codepen.io/anon/pen/JKgZvw