This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listacol = {} | |
listacol['1111'] = { | |
'name': 'Greed', | |
'country_name': 'PERU', | |
'state': 'Utha' | |
} | |
listacol['2222'] = { | |
'name': 'Cloud', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rectangle | |
glColor3f(0.0,0.0,1.0); | |
glBegin(GL_QUADS); | |
glVertex2i(7, 4);// arriba derecha - top right | |
glVertex2i(-7, 4);// arriba izquierda - top left | |
glVertex2i(-7, 0);// abajo izquierda - bottom left | |
glVertex2i(7, 0);// abajo derecha - bottom right | |
glEnd(); | |
// square |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
File nuevaCarpeta = new File(Environment.getExternalStorageDirectory(), "NombreNuevaCarpeta"); | |
if (!nuevaCarpeta.exists()) { | |
nuevaCarpeta.mkdir(); | |
} | |
try { | |
File file = new File(nuevaCarpeta, "ArchivoDePrueba" + ".txt"); | |
file.createNewFile(); | |
FileOutputStream stream = new FileOutputStream(file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.maps.GeoApiContext; | |
import com.google.maps.GeocodingApi; | |
import com.google.maps.errors.ApiException; | |
import com.google.maps.model.GeocodingResult; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
u.nombre, | |
ine.departamento, | |
ine.provincia, | |
ine.distrito | |
FROM mod_ubigeo_departamento AS u | |
LEFT JOIN ubigeo_inei AS ine ON UPPER(u.nombre) = UPPER(ine.departamento) | |
WHERE ine.departamento IS NULL | |
GROUP BY u.nombre | |
UNION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------- | |
group = core | |
admin-port = 13000 | |
admin-password = test | |
admin-deny-ip = "*.*.*.*" | |
admin-allow-ip = "127.0.0.1" | |
smsbox-port = 13001 | |
box-deny-ip = "*.*.*.*" | |
box-allow-ip = "127.0.0.1" | |
dlr-storage = internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class HttpRequest | |
{ | |
protected $host = ''; | |
protected $endpoint = ''; | |
public $url = ''; | |
public $errno = ''; | |
public $error = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Aloha; | |
class NumberShorten | |
{ | |
// readable character set excluded (0,O,1,l) | |
// const CODESET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
const CODESET = "23456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SELECT list is not in GROUP BY clause and contains nonaggregated column 'db.table.column' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by | |
SET @@sql_mode = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ps -ef | grep ruby | |
$ ps -ef | grep vagrant | |
$ kill -9 | |
$ Restart "vagrant up --provider=lxc" |
NewerOlder