- download: https://github.com/ducin-public/itcorpo-api
- powered by: https://www.npmjs.com/package/json-server
import { INC } from './constants'; | |
export const Inc = () => ({ | |
type: INC as typeof INC | |
}) | |
export type Actions = | |
| ReturnType<typeof Inc> |
{ | |
"type": "object", | |
"properties": { | |
"orderId": { | |
"type": "string", | |
"faker": "random.uuid" | |
}, | |
"customer": { | |
"type": "string", | |
"faker": "name.findName" |
Lorem Ipsum License | |
Copyright (c) [year] [fullname] | |
Permission is Lorem ipsum hereby granted, dolor sit amet, free of charge, | |
to any person obtaining a copy consectetur adipiscing elit. Proin nibh augue | |
of this software and associated documentation files (the "Software"), | |
suscipit a, scelerisque sed, to deal lacinia in, mi. Cras vel lorem. | |
Etiam pellentesque aliquet tellus, in the Software without restriction, | |
Phasellus pharetra nulla ac diam. Quisque semper justo at risus including |
node_modules |
const API_URL = 'http://localhost:3011/' | |
const OfficeModel = { | |
getCollection(){ | |
return fetch(`${API_URL}offices`) | |
.then(res => res.json()) | |
}, | |
async __extendOfficeWithEmployees(office){ | |
const employees = await EmployeeModel.getCollection(office.city) | |
return { ...office, employees } |
#!/usr/bin/python | |
import sys, dbus | |
knotify = dbus.SessionBus().get_object("org.kde.knotify", "/Notify") | |
try: title, text = sys.argv[1:3] | |
except: print 'Usage: knotify.py title text'; sys.exit(1) | |
knotify.event("warning", "kde", [], title, text, [], [], 0, 0, dbus_interface="org.kde.KNotify") |
#!/bin/bash | |
if [ "$1" != "" ]; then | |
case $1 in | |
-o | --open ) echo "$USER opening sshfs connection" | |
open your connection here | |
;; | |
-c | --close ) echo "$USER closing sshfs connection" | |
close your connection here | |
;; |
resolveSame
- new promise aggregate
theValue