Refreactor
MAJ + F6
Find usages
ALT + F7
Delete line
long mills = 15000000; | |
Seconds time = Seconds.seconds((int) (mills/1000)); | |
Period period = new Period(time); | |
PeriodFormatter dhm = new PeriodFormatterBuilder() | |
.appendDays() | |
.appendSuffix(" ") | |
.appendSuffix(getString(R.string.suffix_label_day), getString(R.string.suffix_label_days)) | |
.appendSeparator(" ") |
/** | |
* Implementing Fisher–Yates shuffle | |
*/ | |
static void shuffleArray(int[] ar) | |
{ | |
Random rnd = new Random(); | |
for (int i = ar.length - 1; i > 0; i--) | |
{ | |
int index = rnd.nextInt(i + 1); | |
//-- Simple swap |
package labs.mikangali; | |
import org.joda.time.PeriodType; | |
import org.joda.time.Seconds; | |
import org.joda.time.format.PeriodFormatter; | |
import org.joda.time.format.PeriodFormatterBuilder; | |
public class Main { | |
public static void main(String[] args) { |
#!/usr/bin/php521/php -q | |
<?php | |
/** | |
* --------------------------------------------------------------------------------------------------------------------- | |
* SCRIPT PURGE DES TABLES LOGS | |
* | |
* @param String -a : Application | |
* @param int -l : Limite nom d'élément à suppimer à chaque execution (perfs) | |
* @param int -n : Nombre de jours de traces à conserver |
<?php | |
$arr_data = array( | |
"Nom" => "Doe", | |
"Prenom" => "John", | |
"Twitter" => "@mikamboo", | |
"Entity" => "Mikngali" | |
"url" => "http://mikangali.com" | |
); | |
Refreactor
MAJ + F6
Find usages
ALT + F7
Delete line
/* | |
* File: bst.js | |
* | |
* A pure JavaScript implementation of a binary search tree. | |
* | |
*/ | |
/* | |
* Class: BST | |
* |
This tutorial is for creating a vagrant box for ubuntu 12.04 (LTS)
Along the tutorial you must follow this conventions
dnsdomainname
or hostname --fqdn
commands)Voici la procédure : d'abord - et si ce n'est déjà fait - il vous faut installer le client openSSH :
$ sudo apt-get update
$ sudo apt-get install openssh-client
CAUTION : If you are in Linux environement (no boot2Docker) use directly Docker http-proxy
This example overrides the default docker.service file.
$ mkdir /etc/systemd/system/docker.service.d