This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void replaceFragment () { | |
FragmentManager manager = getFragmentManager(); | |
FragmentTransaction transaction = manager.beginTransaction(); | |
manager.replace(R.id.activity_container, new FragmentSample2()); | |
manager.addToBackStack(null); | |
manager.commit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Rasp\Commands; | |
class Test extends Base\AbstractCommand | |
{ | |
/** | |
* コマンドの実行 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/php | |
<?php | |
$StatusCode = array( | |
"100" => "Continue", | |
"101" => "Switching Protocols", | |
"102" => "Processing", # RFC 2518 (WebDAV) | |
"200" => "OK", | |
"201" => "Created", | |
"202" => "Accepted", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# == 0 ]; then | |
echo "引数に検索語句を指定してください" | |
exit 1 | |
fi | |
q=`echo $@ | sed -e 's/ /+/g'` | |
open -a Google\ Chrome https://www.google.com/search?q=$q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.override(Ext.data.Store, { | |
refetchPage: function(page, options, forceLoad) { | |
var me = this, | |
pageSize = me.pageSize || 200, | |
start = (page - 1) * me.pageSize, | |
end = start + pageSize; | |
if (me.getCount() === me.getTotalCount() && !forceLoad) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCalendarSchedule () { | |
var calendar = CalendarApp.getCalendarsByName('予定')[0], | |
events = calendar.getEventsForDay(new Date()), | |
schedule = ''; | |
for (var i = 0; i < events.length; i++) { | |
schedule += events[i].getTitle() + '\n'; | |
} | |
return schedule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Registry extends \ArrayObject | |
{ | |
/** | |
* @var Registry | |
**/ | |
private static $instance; |
OlderNewer