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
--- | |
- name: This is a hello-world example | |
vars: | |
latest_version: "{{ version }}" | |
hosts: localhost | |
tasks: | |
- name: Create a file called '/tmp/testfile.txt' with the content 'hello world'. | |
copy: | |
content: hello worldn | |
dest: /tmp/text.txt |
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
const greatestCommonDivisor(a: number, b: number): number => (b === 0) ? a : greatestCommonDivisor(b, a % b); |
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
const result = []; | |
const traverse = (obj, path = '', parentRow = {}) => { | |
let row = { ...parentRow }; | |
Object.entries(obj).forEach(([key, val]) => { | |
const currentPath = path ? `${path}.${key}` : key; | |
if (Array.isArray(val) && val.length > 0) { |
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
package com.vlad; | |
import com.solacesystems.jms.SolConnectionFactory; | |
import com.solacesystems.jms.SolJmsUtility; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.*; | |
import org.springframework.boot.autoconfigure.*; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.web.bind.annotation.*; |
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
<html> | |
<head> | |
<style> | |
div { | |
margin: 20px; | |
} | |
</style> | |
</head> | |
<body> | |
<input type="file" id="your-files" multiple> |
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
.z.pm:{"HTTP/1.1 200 OK\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Methods: POST, GET, OPTIONS\r\nAccess-Control-Allow-Headers: Content-Type, Authorization\r\nAccess-Control-Max-Age: 86400\r\nVary: Accept-Encoding, Origin\r\nContent-Length: 0\r\nKeep-Alive: timeout=2, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/plain"} |
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
n:1000; timerange:5D; freq:0D00:01; calls:3000; | |
depts:`finance`packing`logistics`management`hoopjumping`trading`telesales; startcpu:(til n)!25+n?20; fcn:n*fc:`long$timerange%freq; | |
computer:([]time:(-0D00:00:10 + fcn?0D00:00:20)+fcn#(.z.p - timerange)+freq*til fc; id:raze fc#'key startcpu) | |
computer:update `g#id from `time xasc update cpu:{100&3|startcpu[first x]+sums(count x)?-2 -1 -1 0 0 1 1 2}[id] by id from computer | |
/ And generate some random logged calls | |
calls:([] time:(.z.p - timerange)+asc calls?timerange; id:calls?key startcpu; severity:calls?1 2 3) | |
computerlookup:([id:key startcpu] dept:n?depts; os:n?`win7`win8`osx`vista) | |
.z.ws:{0N! x; neg[.z.w] .j.j[select[1000000] from computer]} |
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 {Component, OnInit} from '@angular/core'; | |
import * as moment from 'moment'; | |
import 'rxjs/Rx'; | |
import {Subject} from 'rxjs/Subject'; | |
import {Observable} from 'rxjs/Observable'; | |
import {Subscriber} from 'rxjs/Subscriber'; | |
@Component({ | |
selector: 'app-date-range', | |
template: `<p-calendar |
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, InjectionToken} from '@angular/core'; | |
import {Observable} from 'rxjs/Observable'; | |
import {AsyncSubject} from "rxjs/AsyncSubject"; | |
export let FacebookSdk = new InjectionToken<any>("FacebookSdk"); | |
@Injectable() | |
export class FbRequestService { | |
constructor(@Inject(FacebookSdk) private facebookSdk) { | |
} |
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
http://rxmarbles.com/ | |
https://auth0.com/blog/understanding-reactive-programming-and-rxjs/ | |
https://www.learnrxjs.io | |
https://gist.github.com/btroncone/d6cf141d6f2c00dc6b35 | |
https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 | |
https://rxviz.com/ | |
https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md |