This file contains hidden or 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
#[cfg(test)] | |
mod string_manipulation { | |
#[test] | |
fn appending_string_literal() { | |
let mut s = String::from("foo"); | |
s.push_str("bar"); | |
assert_eq!(s, "foobar"); | |
} | |
#[test] |
This file contains hidden or 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
<div data-component="userProfile"> | |
</div> | |
<div data-component="userFavourites"> | |
</div> | |
<div data-component="adminUserManagement"> | |
This file contains hidden or 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
<!-- Mengambil module css --> | |
<link href="{{ dComponent('challengecreation', 'style') }}" rel="stylesheet" type="text/css"> | |
<!-- Mengambil module javascript --> | |
<script src="{{ dComponent('challengecreation', 'script') }}"></script> |
This file contains hidden or 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
{ | |
"challengecreation_script.js": "challengecreation_script-123456.js" | |
} |
This file contains hidden or 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 | |
if (!function_exists('vAsset')) { | |
/** | |
* @param string $file | |
* @return string | |
*/ | |
function vAsset($file) | |
{ |
This file contains hidden or 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
// ... | |
var component = require('./resources/gulps/componentTask'); | |
gulp.task('watch', function() { | |
gulp.watch(['./resources/css/**/*.css'], ['cssrev']); | |
gulp.watch(['./resources/js/**/*.js'], ['jsrev']); | |
}); | |
gulp.task('default', ['watch', 'component']); |
This file contains hidden or 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
var del = require('del'), | |
gulp = require('gulp'), | |
rev = require('gulp-rev'), | |
rename = require('gulp-rename') | |
template = require('gulp-template'), | |
concatCss = require('gulp-concat-css'), | |
minifyCss = require('gulp-minify-css'), | |
uglify = require('gulp-uglify'), | |
concatJs = require('gulp-concat'), | |
revDel = require('./revDel'); |
This file contains hidden or 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 | |
return array( | |
'default' => 'sync', | |
); |
This file contains hidden or 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 | |
// Event handler ini akan berjalan di background | |
class ChallengeEventMailer extends QueuedEventHandler | |
{ | |
public function whenUnpublishedChallengeWasPublished($job, $data) | |
{ | |
try { | |
// Kirim email di background |
This file contains hidden or 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 | |
abstract class <?php | |
abstract class QueuedEventHandler | |
{ | |
// Akan dijalankan ketika event diterima | |
// Ini adalah mekanisme internal Laravel 4.2 | |
public function handle($param) |
NewerOlder