Skip to content

Instantly share code, notes, and snippets.

View junwatu's full-sized avatar
🚀
Ship it!

Equan P. junwatu

🚀
Ship it!
View GitHub Profile
@junwatu
junwatu / Main.mxml
Created August 2, 2011 06:42
Klovis KeyBoardManager Sample App Flex 4
<?xml version="1.0"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009" applicationComplete="init()"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import fr.kapit.flex.keyboard.event.KeyboardManagerEvent;
import fr.kapit.flex.keyboard.KeyBoardManager;
@junwatu
junwatu / KeyBoardManager.as
Created August 2, 2011 07:02
Source code KeyBoardManager.as di library Klovis Flex Core versi 0.9.3
////////////////////////////////////////////////////////////////////////////////
//
// Kap IT - Copyright 2010 Kap IT - All Rights Reserved.
//
// This component is distributed under the GNU LGPL v2.1
// (available at : http://www.hnu.org/licences/old-licenses/lgpl-2.1.html)
//
////////////////////////////////////////////////////////////////////////////////
package fr.kapit.flex.keyboard
{
@junwatu
junwatu / KeyBoardManager.as
Created August 2, 2011 07:29
Class KeyBoarManager.as (Klovis Flex Coore 0.9.3) yang telah dimodifikasi untuk Flex 4
////////////////////////////////////////////////////////////////////////////////
//
// Kap IT - Copyright 2010 Kap IT - All Rights Reserved.
//
// This component is distributed under the GNU LGPL v2.1
// (available at : http://www.hnu.org/licences/old-licenses/lgpl-2.1.html)
//
////////////////////////////////////////////////////////////////////////////////
package fr.kapit.flex.keyboard
{
@junwatu
junwatu / MyBooks.mxml
Created August 17, 2011 16:02
MyBooks main file
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:custom="comp.ui.*" xmlns:local="*" width="700" height="400">
<mx:Label text="MyBooks" fontSize="16" fontWeight="bold" textAlign="left" width="100%"/>
<mx:HDividedBox height="100%" width="100%">
@junwatu
junwatu / BookList.mxml
Created August 18, 2011 03:29
BookList component
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Script>
<![CDATA[
import mx.events.ListEvent;
import com.developmentarc.core.utils.EventBroker;
[Bindable]
public var dataOne:Array = ["Beginning Adobe AIR","Essential ActionScript 3.0"];
@junwatu
junwatu / BookDetails.mxml
Created August 18, 2011 03:38
BookDetails component
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
creationComplete="initdg()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.ListEvent;
import com.developmentarc.core.utils.EventBroker;
[Bindable]
@junwatu
junwatu / Seting Framework Phalcon Dengan Nginx & PHP-FPM
Last active January 1, 2016 15:59
Langkah - langkah setup framework Phalcon dengan Nginx dan PHP-FPM.
Phalcon adalah framework PHP yang di implementasikan sebagai ekstensi C.
http://phalconphp.com/en/
Untuk setup Phalcon dengan Nginx dan PHP-FPM ikuti langkah - langkah berikut. Setup
dilakukan pada OS Linux Elementary Luna.
PHP
---

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust
./configure --target-triples=arm-unknown-linux-gnueabihf

make

@junwatu
junwatu / Object.observe() Binding
Last active August 29, 2015 13:57
Object.observer binding example
Just a raw and dull Object.observe() example, test on Google Chrome Version 35.0.1897.2 dev aura
0. Enable flags "Enable Experimental JavaScript" on Google Chrome.
1. Make HTML file to load JS file
<!-- index.html -->
<!doctype html>
@junwatu
junwatu / L4-101
Last active August 29, 2015 13:59
Laravel 4 Tips & Troubleshooting
**1.** Artisan migrate or db:seed error because of false mysql.sock config
**Problem:**
Command `artisan migrate` or `artisan db:seed` have this error message
[PDOException] SQLSTATE[HY000] [2002] No such file or directory
**Solution:**