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
for v in {61..120}; do eval `printf "cp 0060.png %04d.png\n" "$v"`; done |
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 <library.h> | |
namespace Platform | |
{ | |
typedef int32_t time_t; | |
time_t millis() | |
{ | |
return BIOS::SYS::GetTick(); | |
} |
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
ffmpeg -framerate 30 -i "%04d.png" \ | |
-c:v prores_ks \ | |
-profile:v 5 \ | |
-vendor apl0 \ | |
-bits_per_mb 8000 \ | |
-pix_fmt yuva444p10le \ | |
intro.mov |
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
package com.altera.sof2flash; | |
import org.apache.commons.cli.Option; | |
import java.io.UnsupportedEncodingException; | |
import java.io.FileNotFoundException; | |
import java.io.RandomAccessFile; | |
import com.altera.utilities.Utilities; | |
import com.altera.utilities.Launcher; | |
import java.util.ArrayList; | |
import java.io.Writer; |
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
.wasm | |
{ | |
"declares": [ | |
"exit", | |
"abort", | |
"__assert_fail", | |
"environ_sizes_get", | |
"environ_get", | |
"__syscall_fcntl64", | |
"__syscall_ioctl", |
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
gcc -x c++ -o test_read - << EOF | |
#include <stdio.h> | |
#include <unistd.h> | |
int main() | |
{ | |
fprintf(stdout, "[[Read begin]]\n"); | |
for (int j=0; j<20; j++) | |
{ | |
fprintf(stdout, "[[Read Block %d]]\n", j); |
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
const config = {url: "https://1.2.3.4/", auth: {user: "***", password: "***"}} | |
// workaround for self signed certificates | |
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0; | |
const request = require("request"); | |
const express = require('express'); | |
const app = express() | |
const port = 2175 |
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
///////////////////////////////////////////////////////////////////////////// | |
// Copyright (c)2013 ALTAGATE CO.,Ltd // | |
// All Rights Reserved // | |
// No part of this code may be reproduced, stored in a retrieval system, // | |
// or transmitted, in any form or by any means, electronic, mechanical, // | |
// photocopying, recording, or otherwise, without the prior written // | |
// permission of ALTAGATE CO.,Ltd // | |
///////////////////////////////////////////////////////////////////////////// | |
`timescale 1ns/10ps |
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 <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
class CTempRingBuffer | |
{ | |
enum { mLength = 1024 }; | |
float mBuffer[mLength]; | |
int mIndex{0}; | |
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
// nodejs script for downloading still images from hikvision nvr | |
// uses request-digest for basic http authenticatication | |
// | |
// Still images are available at this url: | |
// http://192.168.1.130/ISAPI/Streaming/channels/200/picture?videoResolutionWidth=1920&videoResolutionHeight=1080 | |
var digestRequest = require('request-digest')('user', 'password'); | |
var fs = require('fs'); | |
var cam = 3; |