Skip to content

Instantly share code, notes, and snippets.

View alien3d's full-sized avatar

hafizan alien3d

View GitHub Profile
@alien3d
alien3d / gist:984094
Created May 21, 2011 00:53
number format converstion..
ISO 4217
http://php.net/manual/en/numberformatter.formatcurrency.php
the most problem is to have internationalize date and currency format.
@alien3d
alien3d / listitem.js
Created April 27, 2017 14:55
react native element list item
import React, {PropTypes, Component} from 'react';
import {
ScrollView,
View,
StyleSheet,
TouchableHighlight,
Image,
Platform,
Switch,
TextInput,
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
import React, { PropTypes, Component } from 'react';
import {
ScrollView,
View,
StyleSheet,
TouchableHighlight,
Image,
Platform,
Switch,
TextInput,
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Windows;
using Microsoft.Translator.Samples;
using System.Net;
import React, {PropTypes, Component} from 'react';
import {
ScrollView,
View,
StyleSheet,
TouchableHighlight,
Image,
Platform,
Switch,
TextInput,
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image
} from 'react-native';
import { TabNavigator,TabBarBottom,TabBarTop } from "react-navigation";
import Icon from 'react-native-vector-icons/FontAwesome';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image
} from 'react-native';
import { StackNavigator,TabNavigator,TabBarBottom,TabBarTop } from "react-navigation";
import Icon from 'react-native-vector-icons/FontAwesome';
@alien3d
alien3d / MainActivity.js
Created August 16, 2017 08:34
Main Activity .. only add Facebook Callback code
package com.example;
import com.reactnativenavigation.controllers.SplashActivity;
import android.content.Intent;
public class MainActivity extends SplashActivity {
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
MainApplication.getCallbackManager().onActivityResult(requestCode, resultCode, data);
package com.example;
import com.reactnativenavigation.controllers.SplashActivity;
import android.content.Intent;
public class MainActivity extends SplashActivity {
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
MainApplication.getCallbackManager().onActivityResult(requestCode, resultCode, data);