I place my learning process in this document with 2 motives:
- To have a quick guide whenever I lost the track of knowledge.
- To share the knowledge with anyone wants to learn RESTful APIs
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
| <?php | |
| /* | |
| * Plugin Name: Example Modify Price | |
| */ | |
| class Example_Modify_Price { | |
| private static $instance; | |
| public static function register() { | |
| if (self::$instance == null) { |
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
| //Key is google taxonomy id, value is shopify collection id | |
| //a partial mapping of the two taxonomies together. | |
| //Google: https://www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt | |
| //Shopify: https://help.shopify.com/txt/product_taxonomy/en.txt | |
| const GOOGLE_TO_SHOPFIY_TAXONOMY = { | |
| 9: "3075", | |
| 100: "4074", | |
| 103: "4079", | |
| 104: "4080", | |
| 108: "4080", |
| - Templater (obsidian://show-plugin?id=templater-obsidian) – essential | |
| - QuickAdd (obsidian://show-plugin?id=quickadd) – | |
| - Text Transporter (obsidian://show-plugin?id=obsidian42-text-transporter) – essential Swiss Army Knife for text editing and note refactoring, speeds up editing | |
| - Blockier (obsidian://show-plugin?id=blockier) – easier handling of text blocks, speeds up editing | |
| - Link with alias (obsidian://show-plugin?id=link-with-alias) or Note Aliases (obsidian://show-plugin?id=note-aliases) -- takes out friction from adding relations between notes | |
| - Persistent Links (obsidian://show-plugin?id=persistent-links) – handy when refactoring notes containing block references | |
| - Periodic Notes (obsidian://show-plugin?id=periodic-notes) | |
| - Linter (obsidian://show-plugin?id=obsidian-linter) | |
| - Tag Wrangler (obsidian://show-plugin?id=tag-wrangler) | |
| - Outliner (obsidian://show-plugin?id=obsidian-outliner) |