git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| $val = "1,234,988.56"; | |
| $num = floatval(str_replace(",","",$val)); | |
| echo $num; | |
| // returns - 1234988.56 |
The API we are creating in this gist will follow these rules :
password Grant Type only (no need for Authorization pages and such).v1.api.example.com)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
| -- View: analytics_event_count | |
| -- DROP VIEW analytics_event_count; | |
| CREATE OR REPLACE VIEW analytics_event_count AS | |
| WITH event_data AS ( | |
| SELECT ee.realm_id, | |
| timezone('UTC'::text, '1970-01-01 00:00:00'::timestamp without time zone + (ee.event_time / 1000)::double precision * '00:00:01'::interval)::date AS event_date, | |
| ee.type AS event_type, | |
| ee.user_id |
| <html> | |
| <head> | |
| <title>Angular 2 - School of Net</title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script src="node_modules/core-js/client/shim.min.js"></script> | |
| <script src="node_modules/zone.js/dist/zone.js"></script> | |
| <script src="node_modules/reflect-metadata/Reflect.js"></script> | |
| <script src="node_modules/systemjs/dist/system.src.js"></script> |
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.