See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| function post_exists_by_title($title) { | |
| global $wpdb; | |
| $query = $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = 'post' AND post_status = 'publish' LIMIT 1", $title); | |
| return $wpdb->get_var($query); | |
| } | |
| function set_featured_image($post_id, $image_url) { | |
| if (empty($image_url)) return; |
| <?php | |
| function post_exists_by_title($title) { | |
| global $wpdb; | |
| $query = $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = 'post' AND post_status = 'publish' LIMIT 1", $title); | |
| return $wpdb->get_var($query); | |
| } | |
| function set_featured_image($post_id, $image_url) { | |
| if (empty($image_url)) return; |
| // From https://bitbucket.org/atlassian/atlaskit-mk-2/raw/4ad0e56649c3e6c973e226b7efaeb28cb240ccb0/packages/core/select/src/data/countries.js | |
| export const countries = [ | |
| { code: "AD", label: "Andorra", phone: "376" }, | |
| { code: "AE", label: "United Arab Emirates", phone: "971" }, | |
| { code: "AF", label: "Afghanistan", phone: "93" }, | |
| { code: "AG", label: "Antigua and Barbuda", phone: "1-268" }, | |
| { code: "AI", label: "Anguilla", phone: "1-264" }, | |
| { code: "AL", label: "Albania", phone: "355" }, | |
| { code: "AM", label: "Armenia", phone: "374" }, | |
| { code: "AO", label: "Angola", phone: "244" }, |
| useSofa({ | |
| schema, | |
| basePath: "/rest", | |
| context: ({ req }) => { | |
| // console.log(req.url, req.originalUrl); | |
| // console.log("Here"); | |
| }, | |
| execute: ({ source, variableValues }) => { | |
| return keystone.executeGraphQL({ | |
| query: source, |
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
| Industry | ||
|---|---|---|
| Accounting | ||
| Airlines/Aviation | ||
| Alternative Dispute Resolution | ||
| Alternative Medicine | ||
| Animation | ||
| Apparel/Fashion | ||
| Architecture/Planning | ||
| Arts/Crafts | ||
| Automotive |
| { | |
| "100": { | |
| "brief": "Continue", | |
| "extended": "The server has received the request headers, and the client should proceed to send the request body" | |
| }, | |
| "101": { | |
| "brief": "Switching Protocols", | |
| "extended": "The requester has asked the server to switch protocols" | |
| }, | |
| "103": { |