Skip to content

Instantly share code, notes, and snippets.

Kaz Watanabe kaz29

Block or report user

Report or block kaz29

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 zend-assign-dim-test.php
<?php
function test($init, $key = 'a')
{
$var = $init;
$var[$key] = 1;
echo var_export($init, true), ': ', is_array($var) ? 1 : 0, "\n";
}
test(null); // OK
@discordier
discordier / gist:ed4b9cba14652e7212f5
Created Dec 4, 2014
options for phpStorm @noinspection annotation
View gist:ed4b9cba14652e7212f5
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@believe2200
believe2200 / draw.xml
Last active Nov 15, 2017
リップルで水面のようなボタンオンオフ
View draw.xml
<ImageButton
android:id="@+id/imageView01"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="3dp"
android:layout_weight="1"
android:background="@drawable/btn_main01"
android:elevation="3dp" />
@haranicle
haranicle / UniversalFrameworkMaker.sh
Last active Oct 27, 2015
A shell script to create an universal cocoa framework.
View UniversalFrameworkMaker.sh
#!/bin/sh
FrameworkName="MyKitName"
rm -rf ./Debug
mkdir ./Debug
cp -r ./Debug-iphoneos/${FrameworkName}.framework ./Debug/${FrameworkName}.framework
lipo -create ./Debug-iphoneos/${FrameworkName}.framework/${FrameworkName} ./Debug-iphonesimulator/${FrameworkName}.framework/${FrameworkName} -output ./Debug/${FrameworkName}.framework/${FrameworkName}
@anzfactory
anzfactory / MyEventObject.java
Last active Mar 26, 2016
NSNotificationCenterのようなことをandroidでもやるために
View MyEventObject.java
/**
* NSNotificationのようなもの
* 通知で送る情報が詰まったオブジェクト
*/
public class MyEventObject extends EventObject {
public static final String TAG = "MyEventObject";
public enum EventType {
Hoge,
View api_v1_01_introduction.md

freee API v1.0

全自動クラウド会計ソフトfreeeの開発者向けAPIのドキュメントです。

概要

本APIを利用することで、あなたのアプリやサービスをfreeeと連携させることができます。

提供機能(2013/10/10現在)

@ysaotome
ysaotome / PPTP_vpn_setup_for_centos64.sh
Last active Dec 20, 2015
CentOS 6.4 x86_64 に対してPPTPでVPNを構築するスクリプト。※DoCoMo SPモードではPPTP使えないので注意。
View PPTP_vpn_setup_for_centos64.sh
#!/bin/bash -x
# Description:PPTP for CentOS 6.4 64bit
# 2013/07/28 @ysaotome
(
### setting
/bin/cat << _SECRETS_ > /tmp/SECRETS_TMP.txt
#==============================================\n
# username auth_server password auth_ipaddress\n
"hoge001" "pptpd" "hoge##123" *\n
@gnomeontherun
gnomeontherun / angularjs-interceptor.js
Last active Aug 18, 2019
Intercept XHR/Ajax requests with AngularJS http interceptors. This allows you to globally intercept and modify requests and responses. You don't need to declare all of the methods, just the ones you need. Some example uses would be logging errors, adding extra headers, or triggering 'loading' screens. This intercepts ALL requests/responses, so y…
View angularjs-interceptor.js
// Intercepting HTTP calls with AngularJS.
angular.module('MyApp', [])
.config(function ($provide, $httpProvider) {
// Intercept http calls.
$provide.factory('MyHttpInterceptor', function ($q) {
return {
// On request success
request: function (config) {
// console.log(config); // Contains the data about the request before it is sent.
View PopupDictionary.php
<?php
/**
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com>
* Date: 07/06/12
*/
namespace Widop\Mink\Extension;
trait PopupDictionary
@hayajo
hayajo / changelog_en.md
Last active Feb 27, 2020
ChangeLog を支える英語
View changelog_en.md

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

You can’t perform that action at this time.