Skip to content

Instantly share code, notes, and snippets.

@zkenstein
zkenstein / fetch-api-examples.md
Created August 29, 2019 16:18 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
# Example encoding of an email message in JSON
{
headers: [ # in an array since order matters
{ name: 'Subject', value: 'An email' },
{ name: 'Date', value: 'Thu, 4 Mar 2010 15:35:32 -0800' },
{ name: 'From', value: 'george@foo.com' },
{ name: 'To', value: 'paul@goo.com' }
{ name: 'Sender', value: 'paul@goo.com' }
{ name: 'Reply-to', value: 'paul@goo.com' }
@zkenstein
zkenstein / docker-compose.yml
Created March 5, 2019 10:40 — forked from wwwebman/docker-compose.yml
Docker Compose For Wordpress, Maria/MYSQL, phpMyAdmin
version: '2'
services:
db:
container_name: database
image: mariadb # Pull mysql image from Docker Hub
ports: # Set up ports exposed for other containers to connect to
- "3306:3306"
volumes:
- ./dep/mysql:/docker-entrypoint-initdb.d
@zkenstein
zkenstein / woocommerce-create-order.md
Created March 4, 2019 14:10 — forked from stormwild/woocommerce-create-order.md
WooCommerce Creating Order Programmatically

WooCommerce Creating Order Programmatically

WooCommerce Create Order

creating Woocommerce order with line_item programatically

// http://stackoverflow.com/questions/26581467/creating-woocommerce-order-with-line-item-programatically
$address = array(
            'first_name' => 'Fresher',
@zkenstein
zkenstein / a_index.html
Created July 13, 2018 14:04 — forked from brookisme/a_index.html
TCD Tile Viewer - 2000 vs 2010
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>TCD Tile Comparison</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/leaflet/0.7.7/leaflet.css" />
@zkenstein
zkenstein / php-webscraping.md
Created August 8, 2016 14:58 — forked from anchetaWern/php-webscraping.md
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}

@zkenstein
zkenstein / php.xampp.mac.sh
Created June 3, 2016 05:08 — forked from hanafiah/php.xampp.mac.sh
ubah default php path dalam mac osx
#1. buka terminal, dan taip arahan di bawah
which php
#2. secara default, lokasi php adalah seperti berikut
/usr/bin/php
#3. edit bash_profile
sudo vim ~/.bash_profile
#4. masukkan line dibawah