Skip to content

Instantly share code, notes, and snippets.

View boska's full-sized avatar
🎯
Focusing

Yang Lee boska

🎯
Focusing
View GitHub Profile
posistions : [
{ position_id : 2,
position_name : a,
modules: [
{
module_id: 123
devices:[
{
device_id: 1
power: 0
//
// API.swift
// hauhau
//
// Created by boska on 4/11/16.
// Copyright © 2016 intentarget. All rights reserved.
//
import Moya
//
// API.swift
// hauhau
//
// Created by boska on 4/11/16.
// Copyright © 2016 intentarget. All rights reserved.
//
import Moya
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)
}
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)
}
@boska
boska / DHT11
Created February 26, 2017 10:51
// 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>
/**
* 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) => {
//
// 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
/
// 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] = []
# iOS ConSense API SAMPLE
## Prerequisites
+ ConSense Account
+ Xcode
## Code Snippet
```swift
let videoURL = "your encoded video url"