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
# encoding: utf-8 | |
from __future__ import absolute_import | |
import sys | |
import uuid | |
try: | |
from typing import Any, Dict, List, Optional, Type, Tuple | |
except: | |
pass |
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
var sprintf = require('sprintf').sprintf | |
/** BOCCO へのアクセスAPI | |
*/ | |
var BOCCO = function(){ | |
this.request = require('request'); | |
this.uuid = require('node-uuid'); | |
this.superagent = require('superagent'); | |
this.speech = require('google-speech-api'); | |
//ルームID |
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
// | |
// ViewController.swift | |
// KonashiI2CTest | |
// | |
// Specification http://kionixfs.kionix.com/en/datasheet/KX023-1025%20Specifications%20Rev%2012.0.pdf | |
import UIKit | |
import konashi_ios_sdk | |
extension Data { |
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
// | |
// KBCollectionExtensions.h | |
// | |
// Created by Guy English on 25/02/08. | |
// Copyright 2008 Kickingbear. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.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
// ↓ コードビハインド | |
<ListView> | |
<ListView.View> | |
<!-- リスト --> | |
</ListView.View> | |
<ListView.ItemContainerStyle> | |
<Style TargetType="{x:Type ListViewItem}"> | |
<EventSetter Event="MouseDoubleClick" Handler="ListViewItem_MouseDoubleClick"/> | |
</Style> | |
</ListView.ItemContainerStyle> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Controls.DataVisualization.Charting; | |
namespace Views.Chart { | |
/// <summary> | |
/// wpf ToolKit Chartの線形軸の原点を0から最小値に変更する | |
/// </summary> |
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
/* | |
<!-- xmlns:l="http://schemas.livet-mvvm.net/2011/wpf" --> | |
<i:Interaction.Triggers> | |
<l:InteractionMessageTrigger MessageKey="Error" Messenger="{Binding Messenger}"> | |
<l:InformationDialogInteractionMessageAction/> | |
</l:InteractionMessageTrigger> | |
</i:Interaction.Triggers> | |
*/ | |
// ViewModel | |
try { |
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
/* xaml | |
<Button Content="export" IsEnabled="{Binding ExportCommand.CanExecute}"> | |
<i:Interaction.Triggers> | |
<i:EventTrigger EventName="Click"> | |
<l:SaveFileDialogInteractionMessageAction> | |
<l:DirectInteractionMessage CallbackCommand="{Binding ExportCommand}"> | |
<l:SavingFileSelectionMessage Filter="{Binding ExportFilter}" /> | |
</l:DirectInteractionMessage> | |
</l:SaveFileDialogInteractionMessageAction> | |
</i:EventTrigger> |
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
<!-- | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" | |
xmlns:l="http://schemas.livet-mvvm.net/2011/wpf" | |
--> | |
<Button Content="開く" IsEnabled="{Binding OpenCommand.CanExecute}> | |
<i:Interaction.Triggers> | |
<i:EventTrigger EventName="Click"> | |
<l:OpenFileDialogInteractionMessageAction> |
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
public static class MiscUtils | |
{ | |
/// <summary> | |
/// Re-maps a number from one range to another. | |
/// </summary> | |
/// <typeparam name="Type">IConvertible-implementing type</typeparam> | |
/// <param name="value">the incoming value to be converted</param> | |
/// <param name="start1">lower bound of the value's current range</param> | |
/// <param name="stop1">upper bound of the value's current range</param> | |
/// <param name="start2">lower bound of the value's target range</param> |
NewerOlder