Skip to content

Instantly share code, notes, and snippets.

@ckentq
ckentq / gist:d5df9aea2a31c2e368242c1595c332cf
Created May 31, 2023 06:37
new data smaple for math vs monster
// stage1
[
// unit1
{
"rounds": [
{
"response": "3",
"help": false,
"question": {
"id": "1",
var searchForm = $('#search-form');
var searchUrl = searchForm.attr('action');
var bannerTable = $('#banner-table');
var _bannerTable;
var editUrl = bannerTable.attr('data-edit-url');
var queryUrl = bannerTable.attr('data-query-url');
$.fn.dataTable.ext.errMode = 'none';
var dataTableSettings = {
stateSave: false,
<?php
....略
/**
* Store a newly created resource in storage.
*
@ckentq
ckentq / plan.md
Created June 20, 2019 04:58
golang plan
###########################################################
###################### General Setup ######################
###########################################################
### Paths #################################################
# Point to the path of your applications code on your host
APP_CODE_PATH_HOST=../
# Point to where the `APP_CODE_PATH_HOST` should be in the container. You may add flags to the path `:cached`, `:delegated`. When using Docker Sync add `:nocopy`
[石川綾子][VOCALO CLASSIC][HI-RES 24-48]
[Hi-res][24Bit-96KHz][150417]ディズニー ピアノ・ベスト
[Hi-res][24Bit-96KHz][150717]ジブリ プレミアム・オルゴール・ベスト
[Hi-res][24Bit-96KHz][150724]The Movie ピアノ・ベストII
[Hi-res][24Bit-96KHz][151017]クラシック ピアノ・ベスト
[Hi-res][24Bit-96KHz][151017]クラシック ピアノ・ベスト-1
[HI-RES][140723]手嶌葵-Ren'Dez-Vous-24-96 FLAC
[May J. W BEST -Original & Covers-][May J.][Hi-Res]
《周杰倫的床邊故事》HI-RES 96kHz24bit-feng
2L123 - Organism - Terje Winge (2016) [192-24]
[[SQHomeViewModel new] getinfoBySuc:^(id success) {
if (kIsEmptyObj(success)) {
self.view.hidden = NO;
[self tabbarController].tabBar.hidden = NO;
}
else
{
if ([kString(success[@"advise"]) isEqualToString:@"0"]) {
[kUserDefaults setBool:NO forKey:def_isShow];
@ckentq
ckentq / ajax.js
Created August 23, 2016 10:07
ajax sample
var url = $('#main-wrapper').attr('data-url');
var loading = $('.loading');
$('.submit').on('click', function(){
var formData = $('.createForm').serialize();
loading.removeClass('hide');//顯示儲存中
$.post(url, formData,function(){},'json')
.done(function(callback){
if(callback.success){
//成功之後要做的事情
@ckentq
ckentq / 0_reuse_code.js
Created January 22, 2016 03:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
//count words
$(".count").each(function() {
var minWords = 0;
var maxWords = <?php echo $counts; ?>;
var _flag = false;
$(this).after('<div class="wordCount"><strong>0</strong> Words</div>');
//count words in begining
$(this).siblings('.wordCount').children('strong').text(jQuery.trim($(this).val()).split(' ').length);
//count words when change
$(this).bind('keyup click blur focus change paste', function() {