Skip to content

Instantly share code, notes, and snippets.

View syossan27's full-sized avatar
💭
🤔

syossan27 syossan27

💭
🤔
View GitHub Profile
@syossan27
syossan27 / file0.txt
Created July 9, 2014 09:30
Laravelプロジェクト内のviewsのキャッシュクリアコマンドを追加する ref: http://qiita.com/syossan27/items/49a71228640c40936251
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
@syossan27
syossan27 / file0.txt
Created July 15, 2014 07:24
GithubにあるLaravel関連のプロジェクトをちょびっとまとめてみた ref: http://qiita.com/syossan27/items/1c4bd8fcd1019c2a4dff
php artisan generate:migration create_post_table
@syossan27
syossan27 / file0.txt
Created July 28, 2014 09:47
一部の人しか使わないであろうGoogleアナリティクスのTips ref: http://qiita.com/syossan27/items/332cecfa7506dc63d69b
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxx-x', 'auto');
ga('send', 'pageview');
</script>
self.countDownTimer.setDate(NSDate(timeIntervalSinceNow: 60 * 3 ))
@IBAction func tapStartButton() {
self.countDownTimer.start()
self.countDownTimer.setDate(NSDate(timeIntervalSinceNow: 60 * 3))
}
import WatchKit
import Foundation
class InterfaceController: WKInterfaceController {
@IBOutlet weak var countDownTimer: WKInterfaceTimer!
@IBOutlet weak var startButton: WKInterfaceButton!
override init(context: AnyObject?) {
// Initialize variables here.
import WatchKit
import Foundation
class InterfaceController: WKInterfaceController {
@IBOutlet weak var hogeTable: WKInterfaceTable!
var test = ["Item1", "Item2", "Item3", "Item4", "Item5"]
override init(context: AnyObject?) {
import WatchKit
class StringTableRowController: NSObject {
@IBOutlet weak var interfaceLabel: WKInterfaceLabel!
}
import UIKit
import WatchKit
class DetailController: WKInterfaceController {
@IBOutlet weak var selectData: WKInterfaceLabel!
override init(context: AnyObject?) {
// Initialize variables here.
super.init(context: context)
$.ajax({
type: "POST",
url: "/hoge",
data: "msg=hoge",
success: function(){
alert("やったぜ!");
},
error: function() {
alert("ダメだったよ・・・");
}