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 override void TouchesBegan(NSSet touches, UIEvent evt) | |
{ | |
var touch = touches.AnyObject as UITouch; | |
Console.Out.WriteLine("TouchesBegan:" + touch.TapCount); | |
if (touch.TapCount == 2) | |
{ | |
Console.Out.WriteLine("TouchesBegan:SingleTap Cancel"); | |
//シングルタップ時の処理キャンセル | |
} |
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
PointF startLoc; | |
int iX_Min = 12; | |
int iY_Max = 4; | |
public override void TouchesBegan(NSSet touches, UIEvent evt) | |
{ | |
var touch = touches.AnyObject as UITouch; | |
Console.Out.WriteLine("TouchesBegan:" + touch.TapCount); |
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 override void DidRotate( UIInterfaceOrientation fromInterfaceOrientation ) | |
{ | |
Console.WriteLine("DidRotate-oreginal: " + fromInterfaceOrientation); | |
Console.WriteLine("DidRotate-now: " + InterfaceOrientation); | |
switch ( InterfaceOrientation ) | |
{ | |
case UIInterfaceOrientation.LandscapeLeft: | |
case UIInterfaceOrientation.LandscapeRight: | |
//Landscape |
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
// JavaScript Document | |
(function(d){ | |
setTimeout( function(){ | |
var js, id = "facebook-jssdk", fbroot = "fb-root"; | |
if ( d.getElementById(id) ) { return; } | |
if ( d.getElementById( fbroot ) ){ | |
js = d.createElement('script'); js.id = id; js.async = true; |
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
'use strict'; | |
var path = require('path'); | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function (grunt) { |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
xxx: xxx | |
//...... | |
}); | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |
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
'use strict'; | |
var path = require('path'); | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function (grunt) { | |
// Project configuration. |
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
"use strict" | |
LIVERELOAD_PORT = 35729 | |
lrSnippet = require("connect-livereload")(port: LIVERELOAD_PORT) | |
mountFolder = (connect, dir) -> | |
connect.static require("path").resolve(dir) | |
module.exports = (grunt) -> | |
grunt.initConfig | |
pkg: grunt.file.readJSON("package.json") | |
connect: |
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
"use strict" | |
mountFolder = (connect, point) -> | |
return connect.static(require('path').resolve(point)) | |
proxySnippet = require("grunt-connect-proxy/lib/utils").proxyRequest | |
module.exports = (grunt) -> | |
# configurable paths |
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
/** | |
* Gruntfile | |
* | |
* If you created your Sails app with `sails new foo --linker`, | |
* the following files will be automatically injected (in order) | |
* into the EJS and HTML files in your `views` and `assets` folders. | |
* | |
* At the top part of this file, you'll find a few of the most commonly | |
* configured options, but Sails' integration with Grunt is also fully | |
* customizable. If you'd like to work with your assets differently |
OlderNewer