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
| <fx:Script> | |
| <![CDATA[ | |
| private function labelPhaseEffortVertical(labelValue:Object, previousLabelValue:Object, axis:AxisBase):String | |
| { | |
| return labelValue + "Hrs"; | |
| } | |
| ]]> | |
| </fx:Script> |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" | |
| xmlns:s="library://ns.adobe.com/flex/spark" | |
| xmlns:mx="library://ns.adobe.com/flex/mx" initialize="loadPage()" borderStyle="solid" styleName="container"> | |
| <fx:Script> | |
| <![CDATA[ | |
| import mx.containers.HBox; | |
| import mx.controls.Alert; | |
| import mx.controls.Image; |
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
| Object.defineProperty(Number.prototype,'fileSize',{value:function(a,b,c,d){ | |
| if(this == 0){ | |
| return "0.0 B"; | |
| }else if(this < 0.001){ | |
| return this.toExponential(1) + " B"; | |
| }else if(this < 1){ | |
| return this.toLocaleString() + " B"; | |
| } | |
| return (a=a?[1e3,'k','B']:[1024,'K','iB'],b=Math,c=b.log, |
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
| (function (root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| // AMD | |
| define(['jquery'], factory); | |
| } else if (typeof exports === 'object') { | |
| // Node, CommonJS-like | |
| module.exports = factory(require('jquery')); | |
| } else { | |
| // Browser globals (root is window) | |
| root.returnExports = factory(root.jQuery); |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | |
| <file source-language="en" datatype="plaintext" original="ng2.template"> | |
| <body> | |
| <trans-unit id="introductionHeader" datatype="html"> | |
| <source> | |
| Hello i18n! | |
| </source> | |
| <target> | |
| Bonjour i18n ! |
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
| // inputTask :: String -> String -> Task | |
| const name = 'dong'; | |
| most.periodic(1000).take(25) | |
| .scan( (x,y) => x + 1, 0) | |
| .map( x => name[x%4]) | |
| .observe(console.log); |
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
| //https://stackoverflow.com/questions/37310640/rxjs-buffer-how-to-group-multi-click-events-as-stream/51547034#51547034 | |
| const btn = document.querySelector('#btn'); | |
| const click$ = Rx.Observable.fromEvent(btn, "click"); | |
| const trigger$ = | |
| click$.exhaustMap(r => | |
| click$ | |
| .take(2) | |
| .last() | |
| .race(click$ |
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
| class Dispatcher extends Rx.Subject{ | |
| dispatch(value : any) : void { | |
| this.next(value); | |
| } | |
| } | |
| class Store extends Rx.BehaviorSubject{ | |
| constructor( | |
| private dispatcher, | |
| private reducer, |
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
| .tpl_install_npm: &npm_install | |
| before_script: | |
| - node -v && npm -v | |
| - npm rebuild node-sass | |
| - npm install --unsafe-perm --no-save | |
| .build_staging_and_upload: &upload_gui_for_staging | |
| image: vmdev/base_node:chrome-alpine | |
| stage: staging_build |
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
| import Control.Monad | |
| import System.IO | |
| pi_ = g(1,0,1,1,3,3) where | |
| g (q,r,t,k,n,l) = | |
| if 4*q+r-t < n*t | |
| then n : g (10*q, 10*(r-n*t), t, k, div (10*(3*q+r)) t - 10*n, l) | |
| else g (q*k, (2*q+r)*l, t*l, k+1, div (q*(7*k+2)+r*l) (t*l), l+2) | |