Skip to content

Instantly share code, notes, and snippets.

@app2641
app2641 / Registry.php
Last active Aug 29, 2015
Zend_Regisry もどきのクラス
View Registry.php
<?php
class Registry extends \ArrayObject
{
/**
* @var Registry
**/
private static $instance;
@app2641
app2641 / MyReadMeTemplate.md
Last active Aug 29, 2015
MyReadMeTemplate.md
View MyReadMeTemplate.md

ToolName Build Status Coverage Status

Overview

Description

Demo

Requirement

View PullRequestTemplate.md

関連URL

  • WikiのURL(Markdown形式)や ...
  • 画像URL や ...
  • 操作可能な画面のURLや ...
  • (あれば...) ...

概要

@app2641
app2641 / gist:4396017c3df8c5943610
Created May 16, 2015
Post GitHub trends to Chatwork
View gist:4396017c3df8c5943610
/**
* @var int
*/
var MAX_REPOS = 4;
/**
* @return void
*/
function postToChatworkGitHubTrends () {
View yochiyochi.rb.md

名前

@app2641
小林 傑 (kobayashi suguru)

職業

ウェブプログラマ

なんでRuby?

Rubyの会社に転職して使うことになったので勉強するために。

View Ext.ux.direct.RemotingProvider
/**
* Ext.ux.direct.RemotingProvider
* @app2641
*/
Ext.define('Ext.ux.direct.RemotingProvider', {
extend: 'Ext.direct.RemotingProvider',
onData: function (options, success, response) {
App.Request.splice(App.Request.length - 1, 1);
View 17_activity_fragment.java
@Override
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sample);
FragmentManager manager = getFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.activity_container, new FragmentSample1());
transaction.commit();
View 17_replace_method.java
public void replaceFragment () {
FragmentManager manager = getFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
manager.replace(R.id.activity_container, new FragmentSample2());
manager.addToBackStack(null);
manager.commit();
}
@app2641
app2641 / 17_activity_fragment.xml
Created Aug 30, 2012
fragment activity sample
View 17_activity_fragment.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activity_container">
</LinearLayout>
View RaspTestCommand.php
<?php
namespace Rasp\Commands;
class Test extends Base\AbstractCommand
{
/**
* コマンドの実行