mitsuruog:generator-sapui5 mitsuruog$ npm publish
npm http PUT https://registry.npmjs.org/generator-sapui5
npm http 409 https://registry.npmjs.org/generator-sapui5
npm http GET https://registry.npmjs.org/generator-sapui5
npm http 200 https://registry.npmjs.org/generator-sapui5
npm http PUT https://registry.npmjs.org/generator-sapui5
npm http 403 https://registry.npmjs.org/generator-sapui5
npm http PUT https://registry.npmjs.org/generator-sapui5
npm http 403 https://registry.npmjs.org/generator-sapui5
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="SAPUI5でHello world" /> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <title>Hello SAPUI5</title> | |
| <script id="sap-ui-bootstrap" type="text/javascript" | |
| src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" | |
| data-sap-ui-theme="sap_bluecrystal" |
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
| coffee: { | |
| compile: { | |
| files: { | |
| // 1:1 コンパイル | |
| 'path/to/result.js': 'path/to/source.coffee', | |
| // コンパイルして1つのファイルに結合 | |
| 'path/to/another.js': ['path/to/sources/*.coffee', 'path/to/more/*.coffee'] | |
| } | |
| } | |
| } |
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
| static function OnBeforeRequest(oSession: Session) { | |
| // ... | |
| //services.odata.orgへのリバースプロキシ設定 | |
| // | |
| //localhostdで/Northwind/というコンテキストがある場合に | |
| //services.odata.org:80ドメインへリクエストを投げます。 | |
| if (oSession.HostnameIs("localhost") && oSession.uriContains("/Northwind/")) { | |
| oSession.host = "services.odata.org:80"; |
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
| http://qiita.com/n_morioka/items/a7a52314aeb2ab86fa61 | |
| import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler({'http': 'http://proxyアドレス:8080'})) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') |
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
| if (oSession.HostnameIs("localhost") && oSession.uriContains("/odata/")) { | |
| oSession.host = "10.100.100.100:8000"; | |
| oSession.PathAndQuery = oSession.PathAndQuery.replace("bank/", ""); | |
| } |
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
| button = new sap.m.Button | |
| text: "Action!!" | |
| press: [message: "Hello :)", (evt, param) -> | |
| jQuery.sap.require "sap.m.MessageToast" | |
| sap.m.MessageToast.show param.message | |
| ] | |
| button.placeAt "content" | |
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
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
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
| sap.ui.controller "com.mitsuruog.sapui5.showroom.view.Locale", | |
| onInit: -> | |
| i18nModel = new sap.ui.model.resource.ResourceModel | |
| bundleUrl : "i18n/messageBundle.properties" | |
| @getView().setModel i18nModel, "i18n" |
OlderNewer