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
View dompdf-example.php
$filename = 'pdf-download';
$options = new \Dompdf\Options;
$options->set('isRemoteEnabled', true);
$dompdf = new \Dompdf\Dompdf($options);
$dompdf->set_option('defaultFont', 'droidsansfallback');
$dompdf->set_option('isFontSubsettingEnabled', true);
asika32764 /
Created Jun 19, 2017
Luna & Warder 1.2 新增功能

Luna & Warder 1.2 新增功能

Luna 1.2

新增 Contact


前後台新增 error_extends 設定

asika32764 /
Last active Jun 13, 2017
Windwalker 3.2 新功能
asika32764 /
Last active Jun 15, 2017
Simon Asika 開發的實用工具列表

Simon Asika 開發的實用工具列表

Web Service

CC0 Avatar Placeholder

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

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 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 / 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 /
Last active Jun 17, 2016
Windwalker 3 預計的改變

PSR7 Support

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


$app->addMiddleware(new GzipCompressMiddleware);
View user-helper.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.