This file contains hidden or 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
| posistions : [ | |
| { position_id : 2, | |
| position_name : a, | |
| modules: [ | |
| { | |
| module_id: 123 | |
| devices:[ | |
| { | |
| device_id: 1 | |
| power: 0 |
This file contains hidden or 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
| // | |
| // API.swift | |
| // hauhau | |
| // | |
| // Created by boska on 4/11/16. | |
| // Copyright © 2016 intentarget. All rights reserved. | |
| // | |
| import Moya |
This file contains hidden or 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
| // | |
| // API.swift | |
| // hauhau | |
| // | |
| // Created by boska on 4/11/16. | |
| // Copyright © 2016 intentarget. All rights reserved. | |
| // | |
| import Moya |
This file contains hidden or 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 Moya | |
| enum API { | |
| case Timeline | |
| case Me | |
| case GroupTimeline(id: Int) | |
| case OpenGraph(url: String) | |
| case Places(query: String, longitude: Double, latitude: Double) | |
| case Post(topic :Topic) | |
| } |
This file contains hidden or 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 Moya | |
| enum API { | |
| case Timeline | |
| case Me | |
| case GroupTimeline(id: Int) | |
| case OpenGraph(url: String) | |
| case Places(query: String, longitude: Double, latitude: Double) | |
| case Post(topic :Topic) | |
| } |
This file contains hidden or 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
| // DHT Temperature & Humidity Sensor | |
| // Unified Sensor Library Example | |
| // Written by Tony DiCola for Adafruit Industries | |
| // Released under an MIT license. | |
| // Depends on the following Arduino libraries: | |
| // - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor | |
| // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library | |
| #include <Adafruit_Sensor.h> |
This file contains hidden or 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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * @flow | |
| */ | |
| import React, { Component, PropTypes } from 'react'; | |
| import { Animated, Image, Button, Alert, AppRegistry, StyleSheet, Text, View } from 'react-native'; | |
| const getRandomInt = (min, max) => { |
This file contains hidden or 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
| // | |
| // MaxiumFourDigits.swift | |
| // Find the maximum valid time that can be displayed on a digital | |
| // clock using four given digits. | |
| // leetcode | |
| // | |
| // Created by boska on 10/02/2017. | |
| // Copyright © 2017 boska. All rights reserved. | |
| // | |
| import Foundation |
This file contains hidden or 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
| / | |
| // 412.swift | |
| // leetcode | |
| // | |
| // Created by boska on 18/04/2017. | |
| // Copyright © 2017 boska. All rights reserved. | |
| // | |
| import XCTest | |
| func fizzBuzz(_ n: Int) -> [String] { | |
| var result: [String] = [] |
This file contains hidden or 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
| # iOS ConSense API SAMPLE | |
| ## Prerequisites | |
| + ConSense Account | |
| + Xcode | |
| ## Code Snippet | |
| ```swift | |
| let videoURL = "your encoded video url" |