By default, ANSI color is turned off. You can enable it globally with the following command:
git config --global --add color.ui true
or on a per-repo basis:
git config --add color.ui true
By default, ANSI color is turned off. You can enable it globally with the following command:
git config --global --add color.ui true
or on a per-repo basis:
git config --add color.ui true
<?php | |
/** | |
* It's always nice to remeber that you can convert an array to an object just typecasting the variable. | |
* Clean and straight to the point :) | |
*/ | |
$obj = (object) $array; | |
?> |
A younger programmer asked an elder about his code and his coding style, and how the older programmer would do certain things. The older programmer said 'Let's take a look at your code', so the younger took out his laptop, opened his editor, and showed him.
The older programmer looked at the code, thought about it for a bit, and then started editing it. He deleted the class internals, leaving only the structure, and then rearranged the structure, saying 'Here's how I would do it to make it more efficient and readable'. After he was done, he saved the file and gave it back to the younger programmer, who was ashen-faced.
'That... My code is gone!' said the younger programmer. 'But you have it in version control somewhere, right?' asked the elder. 'N.... no.' was the reply. 'Well then...' said the older, 'now you've learned two lessons'.
It's very simple to use:
Boolean isValid = isUrl("http://androcode.es");
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
Note this can take a long time if you have a lot of jpgs
package com.j2deme; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
int tipo = 0; | |
int ingrediente = 0; | |
String nombreIngrediente = ""; |
package com.j2deme; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
int horaActual = 0, cantidadHoras = 0, horaFinal = 0; | |
String sufijo = "am"; | |
Scanner teclado = new Scanner(System.in); |
package com.j2deme; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner teclado = new Scanner(System.in); | |
int cantidad = 0; | |
System.out.println("¿Cuántas edades desea capturar?"); |
Paleta de colores basada en Open Color