Skip to content

Instantly share code, notes, and snippets.

View zulfajuniadi's full-sized avatar

Zulfa Juniadi zulfajuniadi

View GitHub Profile
@zulfajuniadi
zulfajuniadi / TerrainScanner.cs
Created June 30, 2018 11:51
Fast Terrain Scanning
using System.Collections.Generic;
using Unity.Collections;
using UnityEngine;
[System.Serializable]
public class Tile
{
public int Key;
public Vector3 Position;
public Vector3 Normal;
@zulfajuniadi
zulfajuniadi / CellularAutomata.cs
Last active December 23, 2023 11:54
Cellular Automata using Unity's Job System
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using UnityEngine;
/// <summary>
/// Cellular Automata using Unity Job System
/// </summary>
/// <example>
/// This sample shows how to call the <see cref="Run"/> method.
angular.module('bw.paging', []).directive('paging', function () {
var regex = /\{page\}/g;
return {
restrict: 'EA',
link: fieldLink,
template: fieldTemplate,
scope: {
page: '=',
pageSize: '=',
@zulfajuniadi
zulfajuniadi / ExampleAnnoyAjayTest.php
Created January 19, 2017 09:57
Facebook Messenger Automation using Laravel Dusk
<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
class ExampleAnnoyAjayTest extends DuskTestCase
{
/**
* A basic browser test example.
@zulfajuniadi
zulfajuniadi / results.md
Last active December 29, 2015 13:49
Benchmark Results PHP 56 vs PHP 70

PHP 56 vs PHP 70 Benchmark

Summary

  • Framework: Laravel 4.2.17
  • OS: Mac OSX 10.11.2
  • Model: MacBook Pro (Retina, Mid 2012)
  • Webserver: Apache 2.4.16
  • Configuration: mod_php
  • Processor: 2.3 GHz Intel Core i7
@zulfajuniadi
zulfajuniadi / gulpfile.js
Created February 22, 2015 02:46
Sample Gulpfile
var gulp = require('gulp');
var include = require('gulp-include');
var less = require('gulp-less');
var watch = require('gulp-watch');
var uglify = require('gulp-uglify');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');
var notify = require("gulp-notify");
var changed = require("gulp-changed");
var plumber = require("gulp-plumber");
@zulfajuniadi
zulfajuniadi / app.js
Created October 15, 2014 14:17
Backbone VirtualDOM using fiduswriter/diffDOM
/*
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VirtualDOM Example</title>
</head>
<body>
<div id="output"></div>
var amqpConnectionOptions = {
host: process.env['RABBITMQ_PORT_5672_TCP_ADDR'],
port: 5672,
login: 'guest',
password: 'guest'
};
var amqpQueueOptions = {
durable: true,
autoDelete: false
};
@zulfajuniadi
zulfajuniadi / Gruntfile.js
Last active January 4, 2016 14:49
grunt php dev
module.exports = function(grunt) {
grunt.initConfig({
shell: {
bower: {
options: {
stdout: true,
},
command: 'bower-requirejs -c public_html/js/main.js -e requirejs'
}
},
@zulfajuniadi
zulfajuniadi / .htaccess
Created December 25, 2013 16:02
Enable CORS via htaccess.
Header add Content-Type "application/json"
Header add Access-Control-Allow-Methods "GET,HEAD,POST,PUT,DELETE,OPTIONS"
Header add Access-Control-Allow-Headers "Auth-Token,Content-Type"
Header add Access-Control-Allow-Origin "*"