Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
Getting started:
Related tutorials:
| <?php | |
| try { | |
| if (! @include_once( './data/install.php' )) { | |
| throw new Exception ('install.php does not exist'); | |
| } | |
| if (!file_exists('./data/install.php' )) { | |
| throw new Exception ('install.php does not exist'); | |
| } else { | |
| require_once('./data/install.php' ); | |
| } |
| #!/bin/bash | |
| # Stop all containers | |
| docker stop $(docker ps -a -q) | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| def get_permutations(string): | |
| # base case | |
| if len(string) <= 1: | |
| return [string] | |
| all_chars_except_last = string[:-1] | |
| last_char = string[-1] | |
| # recursive call: get all possible permutations for all chars except last | |
| permutations_of_all_chars_except_last = get_permutations(all_chars_except_last) |
| var animals = [ | |
| { animal: 'Horse', name: 'Henry', age: 43 }, | |
| { animal: 'Dog', name: 'Fred', age: 13 }, | |
| { animal: 'Cat', name: 'Frodo', age: 18 } | |
| ]; | |
| console.table(animals); | |
| console.trace('trace car'); | |
| console.debug | |
| debug(car.funcY); |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| { | |
| "auto_complete": true, | |
| "auto_complete_commit_on_tab": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/Material Color Scheme/sublime/material-dark.tmTheme", | |
| "copy_with_empty_selection": true, | |
| "detect_indentation": false, |
| utils: function() | |
| { | |
| return { | |
| isMobile: function() | |
| { | |
| return /(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent); | |
| }, | |
| isDesktop: function() | |
| { | |
| return !/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent); |
| #!/usr/bin/env php | |
| <?php | |
| $dictionaries = include "primary.php"; | |
| $apiKey = 'API-KEY'; | |
| $total = count($dictionaries); | |
| $i = 0; | |
| $dict = array(); | |
| foreach ($dictionaries as $key => $value) { | |
| $i++; | |
| $url = 'https://www.googleapis.com/language/translate/v2?q=' . rawurlencode($key) . '&source=ja&target=en' . '&key=' . $apiKey; |