Skip to content

Instantly share code, notes, and snippets.

Taras Mankovski taras

Block or report user

Report or block taras

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View date-workflow.yml
jobs:
job_name:
name: Job Name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish Gateway Releases
uses: thefrontside/actions/publish-gateways@master
with:
npm_publish: npm run my-script
View companies.md

URL: /companies

{
	"data": [
		{
			"id": "ABCDE",
			"type": "company",
			"attributes": {
				"name": "ABCDE Inc"
			},
@taras
taras / task-lifting.js
Created Jul 19, 2019 — forked from cowboyd/task-lifting.js
What is the relationship between tasks and execution trees?
View task-lifting.js
import { execute, call } from 'effection';
// One of the things that struck me was that when I was doing the
// implementation for the `enqueue` function in the task constraining
// functions
// (https://gist.github.com/cowboyd/19122da0c59c674cdea86cf6d70e9c75),
// was the eventual form it took.
//
// Like the other task constructors, it returned a function. Let's
View tasky-react.jsx
import { ReactDOM } from 'react-dom';
import { useTask, useRender } from 'concurrent-react';
const { TaskContext, perform } = useTask(function *(rootElement) {
const render = useRender(ReactDOM);
while (true) {
yield render(<MyApp />, rootElement);
}
});
View 1_rotating_text.fs
(CycleText "FlutterScript" "is" "Cool"
textStyle: (TextStyle
fontSize: 40.0
color: (color “red”)
))
View nativescript.yml
version: 2.1
executors:
ios:
macos:
xcode: "10.1.0"
environment:
NS_SKIP_ENV_CHECK: "true"
android:
View fields.ts
type ID = string | number;
interface Field {
name: string;
id: ID;
required?: boolean;
}
interface TextField extends Field {
type: "Text";
View composed-microstates.test.ts
describe("composed microstates", () => {
let person: Person;
class Person {
name: StringType = child(StringType);
}
beforeEach(() => {
person = create(Person);
});
it('has person be of Person type', () => {
expectType<Person>(person);
View log-diff.ts
import { Observable } from "rxjs";
import { valueOf } from 'microstates'
import { diff } from 'deep-object-diff'
export const logDiff = (name: string) => <T>(source: Observable<T>) =>
new Observable<T>(observer => {
let last: any;
return source.subscribe({
next(x) {
console.log(name, diff(valueOf(last), valueOf(x)));
View zone-operator.ts
export const zoneOperator = (zone: NgZone) => <T>(source: Observable<T>) =>
new Observable<T>(observer =>
source.subscribe({
next(x) {
zone.run(() => observer.next(x));
},
error(err) {
observer.error(err);
},
complete() {
You can’t perform that action at this time.