var meals = ['breakfast', 'lunch', 'dinner'] ;
Or
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
(define-struct node (k v l r)) | |
;; BinaryTree is one of: | |
;; - false | |
;; - (make-node Natural String BinaryTree BinaryTree) | |
(define BT0 false) | |
(define BT1 (make-node 1 "a" false false)) | |
(define BT4 (make-node 4 "d" | |
(make-node 2 "b" | |
(make-node 1 "a" false false) | |
(make-node 3 "c" false false)) |
(define-struct node (k v l r)) | |
;; BinaryTree is one of: | |
;; - false | |
;; - (make-node Natural String BinaryTree BinaryTree) | |
(define BT0 false) | |
(define BT1 (make-node 1 "a" false false)) | |
(define BT4 (make-node 4 "d" | |
(make-node 2 "b" | |
(make-node 1 "a" false false) | |
(make-node 3 "c" false false)) |
import { eventChannel } from 'redux-saga'; | |
import { put, take } from 'redux-saga/effects'; | |
const createMqttChannel = mqtt => { | |
return eventChannel(emitter => { | |
const mqttMsgHandler = (payload: MqttMessage) => { | |
recorder.mqtt(payload); | |
const { event } = payload; | |
switch (event) { |
import { createStore, applyMiddleware } from "redux"; | |
import { all, fork, delay } from "typed-redux-saga"; | |
import createSagaMiddleware from "redux-saga"; | |
const sagaMiddleware = createSagaMiddleware(); | |
const store = createStore(() => undefined, applyMiddleware(sagaMiddleware)); | |
const task = sagaMiddleware.run(rootSaga); | |
function* taskSaga() { | |
console.log("taskSaga - start"); |
async function findUser(id: number) { | |
console.log('Getting user...'); | |
await sleep(1000); | |
// Mocked out API | |
if(id === 999) { | |
return [new Error('User not found'), undefined] | |
} |
// index.js | |
require('./a'); | |
require('./b'); | |
// mqtt.js | |
class MQTT { | |
connect() { | |
const connectionId = Math.random(); | |
console.log('connected to: ', connectionId); | |
this.connectionId = connectionId; |
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<title>Simple JavaScript pagination</title> | |
<meta charset="UTF-8"> | |
<style> | |
div{ | |
position: relative; | |
} | |
#stage{ |
diff --git a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/service/NotificationsService.kt b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/service/NotificationsService.kt | |
index 8e675c4..2062951 100644 | |
--- a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/service/NotificationsService.kt | |
+++ b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/service/NotificationsService.kt | |
@@ -8,6 +8,7 @@ import android.content.Intent | |
import android.content.pm.ActivityInfo | |
import android.net.Uri | |
import android.os.Bundle | |
+import android.os.Build | |
import android.os.Parcel |