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
[user] | |
name = Your Name Here | |
email = yourmail@yourdomain.com | |
[http] | |
proxy = http://[username]:[password]@[host]:[port] | |
[alias] | |
st = status | |
ci = commit | |
co = checkout |
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
nome = 'Lennon' | |
if nome == 'Lennon' | |
alert "Hello Lennon!" | |
else | |
alert "Hello CoffeeScript!" | |
#cubes = (math.cube num for num in list) |
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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
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
# Lennon Jesus - lennon d.o.t. jesus a.t. gmail d.o.t. com | |
require "serialport" | |
port_str = "/dev/ttyACM0" | |
baud_rate = 9600 | |
data_bits = 8 | |
stop_bits = 1 | |
parity = SerialPort::NONE |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.*; | |
public class JsonHelper { | |
public static Object toJSON(Object object) throws JSONException { | |
if (object instanceof Map) { | |
JSONObject json = new JSONObject(); |
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
-- drop all tables in current schema | |
declare | |
table_name varchar2(30); | |
cursor usertables is select * from user_tables where table_name not like 'BIN$%'; | |
begin | |
for next_row in usertables | |
loop | |
execute immediate 'drop table ' || next_row.table_name || ' cascade constraints'; | |
end loop; | |
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
-- executar como usuario aplicacao | |
set serveroutput on | |
DECLARE | |
p_owner VARCHAR(10) := 'GPOP'; | |
v_comando VARCHAR2(1000); | |
CURSOR cur_synonym IS | |
SELECT 'CREATE OR REPLACE SYNONYM '||p_owner||'_APLICACAO.' || object_name || ' FOR ' || p_owner || '.' || object_name |
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
-- executar como usuario OWNER | |
set serveroutput on | |
DECLARE | |
v_owner VARCHAR(10) := TRIM(UPPER('GPOP')); | |
v_comando VARCHAR2(1000); | |
-- Cursor de DRL nas tabelas |
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
"Will it contain key/value pair or values only?" | |
Pairs | |
"Is element order important?" | |
Yes | |
"Insertion order or sorted by keys?" | |
Key sorted | |
"Should it be synchronized?" | |
Yes | |
HashTable | |
No |
OlderNewer