Skip to content

Instantly share code, notes, and snippets.

using System;
using UnityEngine;
namespace Sensel
{
class SenselContacts : MonoBehaviour
{
private IntPtr handle = IntPtr.Zero;
private SenselFrame frame = new SenselFrame();
private SenselSensorInfo sensorInfo = default(SenselSensorInfo);
using System;
using UnityEngine;
namespace Sensel
{
class SenselContacts : MonoBehaviour
{
IntPtr _handle = IntPtr.Zero;
SenselFrame _frame = new SenselFrame();
SenselSensorInfo _sensor_info;
{
"attachment":[
{
"buttons":[
{
"value":"CHOICE_1",
"text":"Tal\u00e1n ink\u00e1bb azt, akit m\u00e1sodszor mondott a b\u00e1csi.",
"type":"postback"
},
{
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
public class PostJSON : MonoBehaviour
{
public TextboxController TextBox;
@rjth
rjth / Re-map values C#
Last active August 6, 2022 02:15
Remap.cs
private float Map(float input, float inputMin, float inputMax, float min, float max)
{
return min + (input - inputMin) * (max - min) / (inputMax - inputMin);
}
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
public class PostJSON : MonoBehaviour
{
private string url = "http://devops.kibu.hu/python/phemia/echo.py";
private string testJson = "{\"sender\":{\"id\":1},\"recipient\":{\"id\":2},\"text\":\"ping\"}";
using System.Collections;
using UnityEngine;
using UnityEngine.Windows.Speech;
using System.Linq;
public class DictationController : MonoBehaviour
{
DictationRecognizer dictationRecognizer;
void Awake()
Traceback (most recent call last):
File "main.py", line 776, in <module>
File "main.py", line 772, in __main__
KeyboardInterrupt:
MicroPython v1.8.5-49-g760ed46-dirty on 2016-10-25; STMBED30 with STM32F405RG
Type "help()" for more information.
>>> api_measure("Measurement", 9)
~GUID~Measurement
313.9 33892
316.7 34332
Traceback (most recent call last):
File "main.py", line 784, in <module>
File "main.py", line 778, in __main__
File "ux.py", line 74, in disp
File "ssd1306.py", line 544, in text
File "ssd1306.py", line 248, in set_pixel
File "ssd1306.py", line 625, in set_pixel
KeyboardInterrupt:
MicroPython v1.8.5-49-g760ed46-dirty on 2016-10-25; STMBED30 with STM32F405RG
Type "help()" for more information.
@rjth
rjth / app.framer
Created November 9, 2016 14:49
Material design Google Chrome Framer template
# deviceType can be either "phone" or "desktop"
Framer.DeviceView.Devices["custom"] =
"deviceType": "desktop"
"screenWidth": 1366
"screenHeight": 663
"deviceImage": "https://dl.dropboxusercontent.com/u/15125393/Framer/Chrome%20Framer%20Template.png"
"deviceImageWidth": 1466
"deviceImageHeight": 1000
# Set custom device