Skip to content

Instantly share code, notes, and snippets.

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

許益銘 rc1021

🏠
Working from home
View GitHub Profile
@rc1021
rc1021 / xamarin_tabbedpage_bar_bottom.md
Last active January 10, 2018 05:29
Xamarin Android TabbedPage Bar 置底作法

歡迎加入我的 LINE ID: easter1021

Xamarin Android TabbedPage Bar 置底

在網路上參考幾份文件,最終選擇使用 Sergey Metlov 的範例,以下內容是我實作時遇到的問題以及詳解。

此篇文章執行的作業系統為 Windows 7 學習時間 10 分鐘

Screenshot

Alt iOSAlt Android

@rc1021
rc1021 / mailchimp-api-demo.php
Created December 13, 2016 06:56
mailchimp-api取得電子報列表的範例(來源:https://github.com/drewm/mailchimp-api
// 建立 instance
$token = '';
$MailChimp = new \Drewm\MailChimp($token);
// 取得電子報資源
$tmp = $MailChimp->call('campaigns/list', $params['args']);
// $tmp['data'] 是電子報列表
$campaigns = $tmp['data'];
@rc1021
rc1021 / DemoClass.php
Last active November 13, 2016 03:10
brief switch in laravel
<?php
// Hi, I am Charles<mufasa.hsu@gmail.com>
// let's go...
namespace App;
use Exception;
class DemoClass
### 城市搜尋器
link: https://github.com/rinvex/country
version: `5.1.*|5.2.*|5.3.*`
@rc1021
rc1021 / TasksServiceProvider.php
Last active February 19, 2017 08:46
using vendor:publish on packages not in vendor
<?php
namespace VendorName\Space;
use Illuminate\Support\ServiceProvider;
class TasksServiceProvider extends ServiceProvider
{
public function boot()
{

介紹

歡迎加入Laravel大本營,本文提供入門者快速有效(沒癈話)的環境設定。

已經會裝環境的人可以跳過本文。

再強調一下,如果可以 最完整的中文說明文件還是在官網 https://laravel.tw/docs/5.2

開發環境如下:

<script type="text/javascript">
$(function () {
$("#user_success").on('submit', function(){
var message = "";
var emptyValue = false;
var name = $('[name="name"]', $(this)).val();
var area = $('select[name="area"] option:selected', $(this)).val();
var time = $('select[name="time"] option:selected', $(this)).val();
var email = $('[name="email"]', $(this)).val();
var phone = $('[name="phone"]', $(this)).val();
@rc1021
rc1021 / change_field_type.php
Last active August 29, 2015 14:04
grocery crud example: how to use change_field_type function for true_false
<?php
/**
* table info:
* CREATE TABLE examples
* (
* `id` integer PRIMARY KEY,
* `enable` TINYINT(1) default 1,
* );
*
*/
@rc1021
rc1021 / User.php
Last active December 10, 2015 08:38
PHP Activerecord 多對多自我參照( has_many through[many to many] self referential ) Codeigniter How to solution
<?php
/**
* Alias 用戶關注的資料表
*/
class TargetUser extends User
{
static $table_name = "users";
}
@rc1021
rc1021 / gist:3736213
Created September 17, 2012 08:41
Issues with RMagick on RubyStack 3.2.1-1
// will be error.
$ sudo gem install rmagick -v '2.13.1'
// If you want to compile or install your own RMagick, you should install the following libraries in your system:
$ sudo apt-get install libbz2-dev libxt-dev libxext-dev
// Then remove the following file if exists:
$ sudo rm /opt/bitnami/common/lib/libbz2.a
// And finally you can install RMagick