Skip to content

Instantly share code, notes, and snippets.

Simon Asika asika32764

Block or report user

Report or block asika32764

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@asika32764
asika32764 / luna-warder-1.2.md
Created Jun 19, 2017
Luna & Warder 1.2 新增功能
View luna-warder-1.2.md

Luna & Warder 1.2 新增功能

Luna 1.2

新增 Contact

170619-0001

前後台新增 error_extends 設定

@asika32764
asika32764 / windwalker-3.2.md
Last active Jun 13, 2017
Windwalker 3.2 新功能
View windwalker-3.2.md
@asika32764
asika32764 / utilities-php-package-by-asika.md
Last active Jun 15, 2017
Simon Asika 開發的實用工具列表
View utilities-php-package-by-asika.md

Simon Asika 開發的實用工具列表

Web Service

CC0 Avatar Placeholder

http://pravatar.cc/


View async-request.php
use Windwalker\Uri\Uri;
/**
* The AsyncRequest class.
*
* @since {DEPLOY_VERSION}
*/
class AsyncRequest
{
/**
View ajax-helper.js
function AjaxHelper() {
this.ajax = function(url, type, dataType, data, callback) {
$.ajax({
url: url,
type: type,
dataType: dataType,
data: data,
success: callback,
error: function(xhr, errorType, error) {
alert('Ajax request error, errorType: ' + errorType + ', error: ' + error)
@asika32764
asika32764 / auto-deploy.md
Created Jul 6, 2016 — forked from domenic/auto-deploy.md
Auto-deploying built products to gh-pages with Travis
View auto-deploy.md

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@asika32764
asika32764 / spinner.rb
Created Jun 24, 2016 — forked from ellemenno/spinner.rb
ascii spinner
View spinner.rb
#!/usr/bin/env ruby
# encoding: UTF-8
@dot_cycle = ['','','','','','','','']
#braille random: 0x2800 - 0x28ff
@z_arrow = ['','','','','','','','']
@z_b = ['b','','q','']
@z_d = ['d','','p','']
@asika32764
asika32764 / new-feature-windwalker-3.md
Last active Jun 17, 2016
Windwalker 3 預計的改變
View new-feature-windwalker-3.md

PSR7 Support

支援 php 最新的 PSR7 Http Message 標準,這表示一些專門給 Slim 或其他框架使用的 Middleware 外掛可以直接裝在 Windwalker 上面使用

Example

$app->addMiddleware(new GzipCompressMiddleware);
View user-helper.php
<?php
/**
* Part of ihealth project.
*
* @copyright Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
use Windwalker\Data\Data;
You can’t perform that action at this time.