This file contains 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
#!/bin/sh | |
#1から100まで数え上げる | |
for i in `seq 1 100` | |
do | |
if [ `expr $i % 15` -eq 0 ]; then | |
echo "FizzBuzz " | |
elif [ `expr $i % 3` -eq 0 ]; then | |
echo "Fizz " |
This file contains 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
#!/bin/sh | |
#for文によるFizzBuzz | |
if [ $1 -ge 0 -a $2 -ge 0 ]; then | |
for i in `seq $1 $2` #seq a b aからbまでループ | |
do | |
if [ `expr $i % 15` -eq 0 ]; then | |
echo "FizzBuzz " |
This file contains 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
#!/bin/sh | |
#関数再帰によるFizzBuzz | |
FizzBuzz(){ | |
if [ `expr $a % 15` -eq 0 ]; then | |
echo "FizzBuzz " | |
elif [ `expr $a % 3` -eq 0 ]; then | |
echo "Fizz " |
This file contains 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
#include <StandardCplusplus.h> | |
#include <system_configuration.h> | |
#include <unwind-cxx.h> | |
#include <utility.h> | |
#include <iterator> | |
#include <vector> | |
#include <chrono> | |
#define elements 100 |
This file contains 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
#include <StandardCplusplus.h> | |
#include <system_configuration.h> | |
#include <unwind-cxx.h> | |
#include <utility.h> | |
#include <iterator> | |
#include <vector> | |
#include <chrono> | |
#include <Utility.h> | |
static const int serial_speed = 9600; |
This file contains 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
#include <MemoryFree.h> | |
void setup(){ | |
Serial.begin(115200); | |
} | |
void loop(){ | |
Serial.print("before:freeMemory()="); | |
Serial.println(freeMemory()); |
This file contains 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
#include <StandardCplusplus.h> | |
#include <system_configuration.h> | |
#include <unwind-cxx.h> | |
#include <utility.h> | |
#include <vector> | |
void setup(){ | |
Serial.begin(9600); | |
} | |
void loop(){ |
This file contains 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
long starttime,endtime,elapsedtime; | |
long baudrate=115200; | |
long number=500; | |
void setup(){ | |
Serial.begin(baudrate); | |
} | |
void loop(){ | |
This file contains 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.Threading.Tasks; | |
namespace ConsoleApplication7 | |
{ | |
public struct Test | |
{ |
This file contains 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
// DirectShowTest_1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// | |
#include "stdafx.h" | |
#include <dshow.h> | |
#define FILENAME L"D:\\sample\\CIMG0145.AVI" | |
int _tmain(int argc, _TCHAR* argv[]) |
OlderNewer