I hereby claim:
- I am zevisert on github.
- I am zevisert (https://keybase.io/zevisert) on keybase.
- I have a public key ASCjvtZm5q54-yFoTOY8VfaO_J95DUq8TSeimtytiJBOFwo
To claim this, I am signing this object:
| @Component({...}) | |
| export class PostComponent implements OnInit { | |
| post: Post; | |
| constructor( | |
| @Inject(BlogService) private blogService: BlogService, | |
| @Inject(ActivatedRoute) private activatedRoute: ActivatedRoute | |
| ) { } |
| @Injectable() | |
| export class BlogService { | |
| private allPostsUrl = "api/posts"; | |
| private singlePostUrl = "api/post/"; | |
| private cachedPosts: PostData[]; | |
| private cachedPromise: Promise<PostData[]>; | |
| // Angular2-jwt nicely attaches the token to every request for us | |
| constructor(@Inject(AuthHttp) private http: AuthHttp) { } |
| @Injectable() | |
| export class AuthService { | |
| ... | |
| validate(pattern: string, route: string): void { | |
| let body: AuthBody = { type: "Anonymous", payload: pattern }; | |
| // Fire off a request to the server to see if the pattern entered is valid | |
| this.postAuth(body) |
| function test_service(place, i) { | |
| return fetch(`https://recollect.net/api/places/${place}/services/${i}`).then(response => { | |
| if (response.ok){ | |
| return response.json(); | |
| } else return {}; | |
| }); | |
| } | |
| function discover_services(place) { | |
| let existing_services = {}; |
| /** | |
| * Created by zevisert on 2017-03-27. | |
| * This file merges mailgun validation functionality with jQueryValidationPlugin's surprisingly | |
| * poor async validation customizability. Much of this code has been borrowed from | |
| * * jQuery Validation remote method | |
| * - https://github.com/jquery-validation/jquery-validation/blob/master/src/core.js#L1477 | |
| * * Mailgun validator jquery plugin | |
| * - https://github.com/mailgun/validator-demo/blob/master/mailgun_validator.js#L30 | |
| * | |
| * |
I hereby claim:
To claim this, I am signing this object:
| <html lang="en"> | |
| <head> | |
| <title>Instagram in Polymer demo</title> | |
| <!-- Import the webcomponents polyfill and Polymer --> | |
| <base href="https://polygit.org/components/"> | |
| <script src="webcomponentsjs/webcomponents-lite.js"></script> | |
| <link rel="import" href="polymer/polymer-element.html"> | |
| </head> |
| var GamePad = require( 'node-gamepad' ); | |
| var dgram = require( 'dgram' ); | |
| var controller = new GamePad('logitech/attack3'); | |
| controller.connect(); | |
| var socket = dgram.createSocket('udp4'); | |
| socket.on('listening', function(){ | |
| socket.setBroadcast(true); | |
| }); |
| js.compile: "es2018" | |
| # build name | browser capabilities | |
| "2018-psm" | ["es2018", "push", "serviceworker", "modules"] | |
| "2018-ps" | ["es2018", "push", "serviceworker"] | |
| "2018-pm" | ["es2018", "push", "modules"] | |
| "2018-sm" | ["es2018", "serviceworker", "modules"] | |
| "2018-s" | ["es2018", "serviceworker"] | |
| "2018-m" | ["es2018", "modules"] | |
| "2018-p" | ["es2018", "push",] | |
| "2018-0" | ["es2018"] |