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
#!/bin/sh | |
policy=.jstatd.all.policy | |
[ -r ${policy} ] || cat >${policy} <<'POLICY' | |
grant codebase "file:${java.home}/" { | |
permission java.security.AllPermission; | |
}; | |
POLICY | |
jstatd -J-Djava.security.policy=${policy} & |
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
// data.ts | |
interface IBalance { | |
addBalanceEntry(amount: number): void | |
currentBalance(): number | |
} | |
// transfer_money.ts | |
interface Destination { |
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
# Goals: | |
- Modular project structure organized by features | |
- Module boundaries | |
- Avoid circular dependencies | |
- Standard Redux approach | |
# Problem | |
When defining actions, reducers, selectors and components in a module. | |
Module reducer or reducers are combined and used in project application root reducer at specific state slice path. | |
Components receives root state with connect (react-redux) which is passed to selectors. |
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
(defprotocol Operator | |
(operator [x] "returns the operator function for x")) | |
(defmulti keyword->operator identity) | |
(extend-type Keyword | |
Operator | |
(operator [kw] (keyword->operator kw))) | |
(extend-type string |
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
import { Inject, Injectable, OnDestroy } from "@angular/core"; | |
/** | |
* Solves the following with `ngOnDestroy`: | |
* - https://github.com/angular/angular/issues/14821 | |
* - https://github.com/angular/angular/issues/14818 | |
*/ | |
export function provideServiceDestroyer(Service: any) { | |
@Injectable() | |
class ServiceDestroyer implements OnDestroy { |
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
<div style="border: 1px dotted black"> | |
foo | |
<div class="c-inline-list"> | |
<div class="c-inline-list__row">1</div> | |
<div class="c-inline-list__row">2</div> | |
<div class="c-inline-list__row">3</div> | |
</div> | |
bar | |
<div class="c-inline-list--drop"> | |
<div class="c-inline-list__row">1</div> |
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
<div class="o-pack"> | |
<div class="o-pack__item"> | |
<label class="c-label u-margin-right-small">Name | |
<input class="c-input c-input--full"/> | |
</label> | |
</div> | |
<div class="o-pack__item"> | |
<label class="c-label u-margin-right-small">Password | |
<input class="c-input c-input--full"/> | |
</label> |
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
/* | |
Leaflet 0.8-dev (3ded683), a JS library for interactive maps. http://leafletjs.com | |
(c) 2010-2014 Vladimir Agafonkin, (c) 2010-2011 CloudMade | |
*/ | |
(function (window, document, undefined) { | |
var L = { | |
version: '0.8-dev' | |
}; | |
function expose() { |
NewerOlder