Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.25882352941176467</real> | |
| <key>Green Component</key> | |
| <real>0.21176470588235294</real> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
| Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw | |
| NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2 |
| // error c program | |
| int main() { | |
| printf("%d", x); | |
| } | |
| // no error python program | |
| a = 1; | |
| if a != 1: |
| Object.prototype.hijack = function(f) { | |
| var o = this; | |
| for(k in o) { | |
| (function(key) { | |
| if(o[key] instanceof Function) { | |
| var t = o[key].clone(); | |
| o[key] = function() { | |
| return f(o, key, t, arguments); | |
| } |
| on write_to_file(this_data, target_file, append_data) -- (string, file path as string, boolean) | |
| try | |
| set the target_file to the target_file as text | |
| set the open_target_file to ¬ | |
| open for access file target_file with write permission | |
| if append_data is false then ¬ | |
| set eof of the open_target_file to 0 | |
| write this_data to the open_target_file starting at eof | |
| close access the open_target_file | |
| return true |
| #include <stdio.h> | |
| int main() { | |
| printf("Hello World"); | |
| return 0; | |
| } |
| from os import walk | |
| from os.path import join | |
| from threading import Timer | |
| from subprocess import call | |
| from datetime import datetime | |
| def do(f, time, *args): | |
| f(*args) | |
| Timer(time, lambda: do(f, time, *args)).start() |
| function o = myref(A) | |
| row = length(A(:, 1)); | |
| for i=1:1:row | |
| current_row = A(i, :); | |
| for j=i+1:1:row | |
| compare_row = A(j, :); | |
| f = current_row(1, i); | |
| s = compare_row(1, i); | |
| mult_row = current_row * (s / f); |
| p = Person() | |
| for k, v in payload.iteritems(): | |
| setattr(p, k, v) |