Skip to content

Instantly share code, notes, and snippets.

@syoou
syoou / twitcast.sh
Created February 11, 2017 07:54 — forked from dyama/twitcast.sh
Simple recorder for Twitcasting.tv
#!/bin/bash
# coding: utf-8
# twitcast.sh by dyama
if [ -n "$1" ]; then
id=$(echo "$1" | sed 's|^.*/||g')
fname="${id}_$(date +'%F_%H-%M-%S').ts"
ffmpeg -i "http://twitcasting.tv/$id/metastream.m3u8" \
-vcodec copy -acodec copy -f mpegts "$fname"
else
# coding: UTF-8
import glob
def test_func(filename):
#sparseのリストが2次元リストであることをpythonに伝える
sparse = [[]]
#読み込んだファイルを一行ずつlineの中に格納していく
for line in open(filename, "r").readlines():
#スペース置きにリストを分割してsparseに書き込む
sparse.append(line[:-1].split())
Dim point1 As Integer '得点を入れる配列
Dim point2 As Integer
Dim point_output1 As Shape
Dim point_output2 As Shape
Sub Point_left() '入力した値を加算
Dim sld As Slide
Dim p1_temp As Integer
@syoou
syoou / php
Last active November 8, 2016 11:46
<?php
echo "Hello";
echo "add";
?>
@syoou
syoou / gene.cpp
Last active October 24, 2015 16:15
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
using namespace std;
#define MAX 20
#define MAX_S 0xFFFF