This file contains hidden or 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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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 | |
| proxySnippet = require("grunt-connect-proxy/lib/utils").proxyRequest | |
| mountFolder = folderMount = (connect, base) -> | |
| connect["static"] require("path").resolve(base) | |
| listen = 8000 | |
| server = 3000 | |
| module.exports = (grunt) -> |
This file contains hidden or 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 = (grunt)-> | |
| pkg = grunt.file.readJSON 'package.json' | |
| for taskName of pkg.devDependencies | |
| if taskName.substring(0,6) == 'grunt-' | |
| grunt.loadNpmTasks taskName | |
| grunt.initConfig |
This file contains hidden or 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
| do(d=document)-> | |
| app = angular.module myApp, [] | |
| app.controller "uploadCtrl", ["$scope", "$http", ($scope, $http)-> | |
| $scope.$data = { | |
| userId: "ID" | |
| userName: "USER_NAME" | |
| userMail: "sample@example.com" | |
| receiveMail: "sample@example.com" | |
| downloadPassword: "hogehoge" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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); |
OlderNewer