Script:
var number;
number = 1000000;
number.toLocaleString();
number.toLocaleString('id-ID');
number = 1500000.59
number.toLocaleString();
{ | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"ensure_newline_at_eof_on_save": true, | |
"shift_tab_unindent": true, | |
"highlight_modified_tabs": true, |
# /etc/nginx/sites-available/laravel | |
server { | |
listen 80; | |
listen [::]:80 ipv6only=on; | |
root /var/www/html/laravel/public; | |
index index.php index.html index.htm; | |
server_name laravel.dev; |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/heru/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
/* | |
* here is the file from the following article: | |
* http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/ | |
*/ | |
package com.aw.ad.util; | |
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions |
def implode(ArrayList inputArray, String glueString) | |
{ | |
/** Output variable */ | |
String output = ""; | |
if (inputArray.size() > 0) | |
{ | |
StringBuilder sb = new StringBuilder(); | |
sb.append(inputArray[0]); |
Script:
var number;
number = 1000000;
number.toLocaleString();
number.toLocaleString('id-ID');
number = 1500000.59
number.toLocaleString();
<?php namespace App; | |
use DB; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Auth\Passwords\CanResetPassword; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; | |
class User extends Model implements AuthenticatableContract, CanResetPasswordContract { |
<?php namespace App; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Auth\Passwords\CanResetPassword; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class User |