Skip to content

Instantly share code, notes, and snippets.

View dailystore's full-sized avatar
💭
Demo for PS1

Phan An dailystore

💭
Demo for PS1
View GitHub Profile
<html>
<head>
<style>
text { fill: black; text-anchor: middle; }
line { stroke-width: 1; stroke: lightgray; }
</style>
<script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
.node circle {
fill: #666;
}
.node text {
font: 10px sans-serif;
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
.node circle {
fill: #666;
}
.node text {
font: 10px sans-serif;
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
.node circle {
fill: #666;
}
.node text {
font: 10px sans-serif;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>
</head>
<body id="body">

#Idiots Guide to Using littleBits cloudBit API

##Introduction

  1. Connect a cloudBit to your network using the instructions at http://control.littlebitscloud.cc/
  2. Find out your AccessToken
  • visit http://control.littlebitscloud.cc/
  • on the left hand side select any of your cloudBits
  • using the tab bar at the bottom select settings
  • scroll down and copy your AccessToken
@dailystore
dailystore / check.go
Created August 6, 2016 05:32 — forked from mattes/check.go
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); err == nil {
// path/to/whatever exists
}