Skip to content

Instantly share code, notes, and snippets.

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

Tkc tkc

🏠
Working from home
  • Japan
View GitHub Profile
<div class="col-xs-4 col-md-4">
<label for="">&nbsp;</label>
{{Form::select('expiry_type',
\Dao\ServiceCardTemplate::$dayUnit,,
array(
'id'=>'expiry_unit',
'class'=>'form-control',
'ng-model'=>'expiry_type'
<select ng-model="selectTag" ng-options="k as v for (k,v) in selectList"></select>
選択された値 = @{{ selectTag }}
$scope.selectList = {
10: "睦月",
2: "如月",
3: "弥生",
4: "卯月"
};
var getItemLists = function () {
var data = {
'item_dealer_id': global.dealer_id,
'skip': _skipCountItemLIst
};
var req = {
method: 'POST',
<form name="form">
<input id=""
type="text"
class="form-control w400_h40_auto margin_b_20_1"
placeholder="名称"
name="boardName"
ng-model="boardName"
ng-minlength="5"
ng-maxlength="20"
ng-required="hoge.interval==='w2'"
<div ng-controller="TestCtrl as test">
<select ng-model="test.selectedItem" ng-options="item as item.name for item in test.items"></select>
<pre>@{{test.selectedItem | json}}</pre>
</div>
app.controller('TestCtrl', function ($scope) {
this.items = [
<select
ng-model="selectedMonth"
ng-change="select()"
ng-options="month as month.label for month in months"></select>
<input type="hidden" name="test" value="@{{selectedMonth.num}}">
@{{selectedMonth.label | json}}
<select
ng-model="select2"
ng-options="list as list.label for list in list2"
class="form-control"
></select>
<set-select-default list-array="list2"
list-key="num"
model-name="select2"
default-value="<?php echo $SCT->expiry_unit ?>">
$response = $this->call(
'POST',
'/api/user/login',
[],
[],
[],
['HTTP_Content-Type' => 'application/json'],
[json_encode($param)]
);
@tkc
tkc / setup_selenium.sh
Created May 21, 2016 15:48 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in