Skip to content

Instantly share code, notes, and snippets.

View eakmotion's full-sized avatar
🏠
Working from home

Eak Zangkaew eakmotion

🏠
Working from home
View GitHub Profile
openapi: 3.0.0
info:
title: Affiliate API
description: The Affiliate REST-based API. The API includes the following capabilities and operations...
version: '2.0'
servers:
- url: '{apiRoot}'
variables:
apiRoot:
default: https://affiliate-api.dev.mogo.dev
@eakmotion
eakmotion / gist:4257210
Created December 11, 2012 09:06 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@eakmotion
eakmotion / shirt.php
Created November 23, 2012 07:30
PHP: Product category in single page
<?php include("inc/products.php");
if (isset($_GET["id"])) { // check value if isset $_GET will set to product
$product_id = $_GET["id"];
if (isset($products[$product_id])) {
$product = $products[$product_id];
}
}
if (!isset($product)) { // check value if product !isset will redirect
header("Location: shirts.php");
@eakmotion
eakmotion / contact.php
Created November 22, 2012 15:57
PHP: Form send single page
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){ // check $_POST value before process
$name = $_POST["name"];
$email = $_POST["email"];
$message = $_POST["message"];
$email_body = "";
$email_body = $email_body . "Name : " . $name . "\n" ;
$email_body = $email_body . "Email : " . $email . "\n";
$email_body = $email_body . "Message : " . $message ;
@eakmotion
eakmotion / gist:4128407
Created November 21, 2012 23:00
PHP: random characters
/**
* Generate and return a random characters string
*
* Useful for generating passwords or hashes.
*
* The default string returned is 8 alphanumeric characters string.
*
* The type of string returned can be changed with the "type" parameter.
* Seven types are - by default - available: basic, alpha, alphanum, num, nozero, unique and md5.
*
@eakmotion
eakmotion / index.html
Created November 21, 2012 22:29
HTML Testing with Jquery
<html>
<title></title>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
hello
<nav>
<ul>
@eakmotion
eakmotion / index.html
Created November 21, 2012 22:25
testing
<script type="text/javascript">
// $("a").hide("slow").show("slow");
$("a").hover(function(event){
$(this).toggleClass("hilight");
}).click(function(event){
event.preventDefault();
$(this).show("slow" , function(){
$(this).toggleClass("bigger");
})
});