CRUD = Create, Read, Update, Delete
$host = '127.0.0.1';
$dbname = 'test';
$username = 'root';| #!/usr/bin/env bash | |
| # tputdemo.sh | |
| echo -e "\n$(tput bold) reg dim bld und tput-command$(tput sgr0)" | |
| for i in $(seq 0 15); do | |
| for k in sgr0 dim bold smul; do | |
| echo -n " $(tput $k)$(tput setaf $i)Text$(tput sgr0)" | |
| done | |
| echo " \$(tput setaf $i)" | |
| done |
| #!/usr/bin/env bash | |
| # Formatting constants | |
| export BOLD=`tput bold` | |
| export UNDERLINE_ON=`tput smul` | |
| export UNDERLINE_OFF=`tput rmul` | |
| export TEXT_BLACK=`tput setaf 0` | |
| export TEXT_RED=`tput setaf 1` | |
| export TEXT_GREEN=`tput setaf 2` | |
| export TEXT_YELLOW=`tput setaf 3` |
| <link rel="import" href="../core-input/core-input.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; |
| SEVERE: (TypeError) : Cannot read property 'getHeight_22_g$' of nullcom.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'getHeight_22_g$' of null | |
| at Unknown.wrap_3_g$(Exceptions.java:36) | |
| at Unknown.adjustHeights_0_g$(ColumnHeader.java:1074) | |
| at Unknown.onAttach_17_g$(ColumnHeader.java:1162) | |
| at Unknown.doAttachNative_0_g$(ComponentHelper.java:77) | |
| at Unknown.doAttach_1_g$(ComponentHelper.java:21) | |
| at Unknown.doAttach_2_g$(GridView.java:861) | |
| at Unknown.doAttachChildren_24_g$(Grid.java:766) | |
| at Unknown.onAttach_0_g$(Widget.java:354) | |
| at Unknown.onAttach_2_g$(Component.java:1642) |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |
It gives notifications when someone goes online or offline or typing. Open chat of the contact you want to monitor and start script.
| /* | |
| It builds a hierarchical query. | |
| There are 2 components to it: | |
| "start with" -- this identifies all LEVEL=1 nodes in the tree | |
| "connect by" -- describes how to walk from the parent nodes above to their children and their childrens children. | |
| */ | |
| select ename, empno, mgr from emp; | |
| select lpad(' ',level*2,' ')||ename ename, | |
| sys_connect_by_path(business_code, '/') path, | |
| connect_by_isleaf is_leaf, |
This recipe is useful for cooking up chained API calls as a result of a single action.
In the below example, a single action called POST_REPO is dispatched and it's intention is to create a new repostiory on GitHub then update the README with new data after it is created.
For this to happen there are 4 API calls necessary to the GitHub API: