- Download Instant Client:
- instantclient-basic-macos.x64-11.2.0.4.0.zip
- instantclient-sdk-macos.x64-11.2.0.4.0.zip
- instantclient-sqlplus-macos.x64-11.2.0.4.0.zip
-
Unzip and move to /opt
-
Create symlink
| [ | |
| { | |
| "code": "ab", | |
| "name": "Abkhaz" | |
| }, | |
| { | |
| "code": "aa", | |
| "name": "Afar" | |
| }, | |
| { |
| # Copyright (C) 2016 Martina Pugliese | |
| from boto3 import resource | |
| from boto3.dynamodb.conditions import Key | |
| # The boto3 dynamoDB resource | |
| dynamodb_resource = resource('dynamodb') | |
| def get_table_metadata(table_name): |
| /** | |
| * Actively wait for an element present and displayed up to specTimeoutMs | |
| * ignoring useless webdriver errors like StaleElementError. | |
| * | |
| * Usage: | |
| * Add `require('./waitReady.js');` in your onPrepare block or file. | |
| * | |
| * @example | |
| * expect($('.some-html-class').waitReady()).toBeTruthy(); | |
| */ |
| <?php | |
| //file: /.env.local.php | |
| // return the configuration for the 'local' environment | |
| return array( | |
| 'db_host' => '127.0.0.1', | |
| 'db_name' => 'DB_NAME', // specify database name | |
| 'db_user' => 'DB_USER', // specify database username | |
| 'db_pass' => 'DB_PASS', // specify database password | |
| ); |
Unzip and move to /opt
Create symlink
| / Returns an iterator containing the primary (built-in) Ethernet interface. The caller is responsible for | |
| // releasing the iterator after the caller is done with it. | |
| func FindEthernetInterfaces() -> io_iterator_t? { | |
| let matchingDictUM = IOServiceMatching("IOEthernetInterface"); | |
| // Note that another option here would be: | |
| // matchingDict = IOBSDMatching("en0"); | |
| // but en0: isn't necessarily the primary interface, especially on systems with multiple Ethernet ports. | |
| if matchingDictUM == nil { |
| class AppDelegate, NSObject, NSApplicationDelegate { | |
| @IBOutlet weak var linkField: NSTextField! | |
| func applicationDidFinishLaunching(aNotification: NSNotification) { | |
| ... | |
| linkField.attributedStringValue = link_string("Google", url: NSURL(string: "http://www.google.com/")) | |
| ... | |
| } | |
| /* | |
| var t = Timer() | |
| t.start() | |
| // do something | |
| t.stop() | |
| println("took \(t.seconds)") | |
| */ |
| var CryptoJS = require("crypto-js");//replace thie with script tag in browser env | |
| //encrypt | |
| var rawStr = "hello world!"; | |
| var wordArray = CryptoJS.enc.Utf8.parse(rawStr); | |
| var base64 = CryptoJS.enc.Base64.stringify(wordArray); | |
| console.log('encrypted:', base64); | |
| //decrypt | |
| var parsedWordArray = CryptoJS.enc.Base64.parse(base64); |