Skip to content

Instantly share code, notes, and snippets.

@maxlapshin
maxlapshin / capture_raw_frames.c
Created September 30, 2011 11:50
v4l2 capture example
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>
@tkyowa
tkyowa / gist:1378694
Last active May 23, 2017 08:15
ruby-debugを使ったRuby・Railsアプリケーションのデバッグ方法

ruby-debugを使ったRuby・Railsアプリケーションのデバッグ方法

インストール

# Ruby 1.8系の場合
gem install ruby-debug

# Ruby 1.9系の場合
gem install debugger
@hayajo
hayajo / changelog_en.md
Last active May 3, 2024 08:29
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
#!/bin/bash
ENCODER="HandBrakeCLI"
EXT="mp4"
VERSION="r11f18"
OUTPUT="$1_$VERSION.$EXT"
OPTS='-t 1 -c 1 -f mp4 --denoise="2:1.5:3:2.25" \
-w 1280 -l 720 --crop 0:8:0:0 --modulus 2 -e x264 -q 18 \
@penguin2716
penguin2716 / degree_certificate.rb
Created March 11, 2013 02:44
卒業証明書を発行するmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :degree_certificate do
command(:degree_certificate,
name: '卒業証明書を発行',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
opt.messages.each { |m|
@shokai
shokai / macaddrs.rb
Created June 14, 2013 21:11
LAN内の全ホストのIPアドレスとMacアドレスを取得する
#!/usr/bin/env ruby
require 'rubygems'
require 'parallel'
ARGV.each do |arg|
unless arg =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
STDERR.puts %Q{invalid addr "#{arg}"}
exit 1
end
end
@Kesin11
Kesin11 / webspeech.html
Created August 27, 2013 07:30
Web Speech API (Greater than Chrome 25 only)
<html>
<head>
<title>Web Speech API</title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>
<input type="button" value="音声認識開始" onclick="startRecognition();"/>
<input type="button" value="音声認識終了" onclick="recognition.stop();"/>
連続認識<input id="continuous" type="checkbox">
@JRG-Developer
JRG-Developer / UITabBarController+HideTabBar.h
Last active March 2, 2019 18:48
iOS 6+ Method for Hiding the Tab Bar
//
// UITabBarController+HideTabBar.h
//
// Created by Joshua Greene on 9/26/13.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is