Skip to content

Instantly share code, notes, and snippets.

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

kamiyam kamiyam

🏠
Working from home
View GitHub Profile
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");
//シングルタップ時の処理キャンセル
}
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);
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
// 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;
@kamiyam
kamiyam / Gruntfile.js
Last active December 14, 2015 00:09
grunt.js 0.4 beginning...
'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) {
@kamiyam
kamiyam / Gruntfile.js
Last active December 14, 2015 01:59
grunt-xxxxx auto all load setting...
module.exports = function (grunt) {
grunt.initConfig({
xxx: xxx
//......
});
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
@kamiyam
kamiyam / Gruntfile.js
Created March 14, 2013 10:52
grunt say hello
'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.
@kamiyam
kamiyam / .Gruntfile.coffee
Last active December 18, 2015 17:48
grunt Live Reload grunt-contrib-watch version
"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:
@kamiyam
kamiyam / Gruntfile.coffee
Last active August 13, 2016 12:56
Grunt on CakePHP
"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
@kamiyam
kamiyam / Gruntfile.js
Created August 28, 2013 17:12
Customized Gruntfile.js for Sails.js v0.9.3
/**
* 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