Given a grid of images, generate single images
- Install imagemagick
- Run the convert command:
| import React, { Component } from 'react' | |
| import { Animated, View, StyleSheet, Image, Dimensions, ScrollView } from 'react-native' | |
| const deviceWidth = Dimensions.get('window').width | |
| const FIXED_BAR_WIDTH = 280 | |
| const BAR_SPACE = 10 | |
| const images = [ | |
| 'https://s-media-cache-ak0.pinimg.com/originals/ee/51/39/ee5139157407967591081ee04723259a.png', | |
| 'https://s-media-cache-ak0.pinimg.com/originals/40/4f/83/404f83e93175630e77bc29b3fe727cbe.jpg', |
| import React, { Component } from 'react' | |
| import { AppRegistry, Animated, Easing, View, StyleSheet, Image, Dimensions, ScrollView, TouchableOpacity, Text } from 'react-native' | |
| const deviceWidth = Dimensions.get('window').width | |
| const deviceHeight = Dimensions.get('window').height | |
| const DISMISS_MODAL_THRESHOLD = 150 //distance we have to scroll in the y direction to dismiss the carousel | |
| const images = [ | |
| require('./assets/images/image01.jpg'), | |
| require('./assets/images/image02.jpg'), |
| //node vars | |
| const express = require('express') | |
| const twilio = require('twilio') | |
| const request = require('request') | |
| //twilio vars | |
| const accountSid = '###' //your twilio account SID | |
| const authToken = "###" //your twilio auth token | |
| const client = require('twilio')(accountSid, authToken) | |
| const baseURL = 'https://api.twilio.com/2010-04-01/Accounts/[YOUR_ACCOUNT_HERE]/Recordings/' |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class CubeScript : MonoBehaviour { | |
| public OscIn oscIn; | |
| public GameObject go; | |
| private float receivedVal; |
| void setup() { | |
| BeanHid.enable(); | |
| } | |
| void loop() { | |
| AccelerationReading accel = Bean.getAcceleration(); | |
| int16_t x = accel.xAxis; | |
| int16_t y = accel.yAxis; | |
| int16_t z = accel.zAxis; |
| /* | |
| Grove LED Bar | |
| dec hex binary | |
| 0 = 0x0 = 0b000000000000000 = all LEDs off | |
| 5 = 0x05 = 0b000000000000101 = LEDs 1 and 3 on, all others off | |
| 341 = 0x155 = 0b000000101010101 = LEDs 1,3,5,7,9 on, 2,4,6,8,10 off | |
| 1023 = 0x3ff = 0b000001111111111 = all LEDs on | |
| | | | |
| 10 1 |
Given a grid of images, generate single images
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="https://d3js.org/d3.v4.min.js"></script> | |
| <style> | |
| body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
| </style> | |
| </head> | |
| <body> |
| config = { //SAMPLE OBJECT - replace this with your data object | |
| stroke: 2, //svg stroke value | |
| opacity: 0.3, //0-1 | |
| offsetX: 120, //px | |
| offsetY: 80, | |
| fontWeight: 400, //css font-weight | |
| fontSize: 12, //in px | |
| changePositive: '\u25B4', //unicode character for up arrow | |
| changeNegative: '\u25BE', //unicode character for down arrow | |
| colorBlue: '#1190A3', //all hex colors will automatically use the addColor dat gui function |
| // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
| Shader "Skybox/CubemapStereo" { | |
| Properties { | |
| _Tint ("Tint Color", Color) = (.5, .5, .5, .5) | |
| [Gamma] _Exposure ("Exposure", Range(0, 8)) = 1.0 | |
| _Rotation ("Rotation", Range(0, 360)) = 0 | |
| [NoScaleOffset] _TexLeft ("Cubemap (HDR)", Cube) = "grey" {} | |
| [NoScaleOffset] _TexRight ("Cubemap (HDR)", Cube) = "grey" {} | |
| } |