Skip to content

Instantly share code, notes, and snippets.

View imudak's full-sized avatar

imudak imudak

View GitHub Profile
@imudak
imudak / 埋め込みリンク
Last active December 19, 2019 04:10
soundcloud
ok
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/730610650&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>
ng
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/723416953&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/723433561&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@imudak
imudak / file0.txt
Last active November 16, 2018 10:09
ASP.NET CoreでIDスキャフォールディング後にRoleを追加する話。 ref: https://qiita.com/imudak/items/f326a1727d19a79fb22d
namespace IdRoleSample.Models
{
- public class IdRoleSampleContext : IdentityDbContext<IdentityUser>
+ public class IdRoleSampleContext : IdentityDbContext<IdentityUser, IdentityRole, string>
{
public IdRoleSampleContext(DbContextOptions<IdRoleSampleContext> options)
: base(options)
@imudak
imudak / PwmOriginal.cpp
Created April 24, 2018 08:31
PWMを自力で生成するスケッチ
/******** Sine wave parameters ********/
#define PI4 4*3.14159 // 2 sine wave cycles
#define AMP 127 // PWM Multiplication factor for the sine wave
#define OFFSET 128 // Offset shifts wave to just positive values
/******** Lookup table ********/
#define LENGTH 20 // The length of the waveform lookup table
byte wave[LENGTH]; // waveform values for PWM
const byte pulsePin = 9;
@imudak
imudak / post-receive-email.php
Created November 16, 2012 01:29 — forked from nishimura/post-receive-email.php
post-commit-email for Japanese Encoding.
<?php
$from = `git config hooks.envelopesender`;
$to = `git config hooks.mailinglist`;
$emailprefix = `git config hooks.emailprefix`;
if (!$emailprefix)
$emailprefix = '[SCM]';
if (!isset($argc) || $argc < 3){
@imudak
imudak / .zshrc
Created July 26, 2012 09:43
http://news.mynavi.jp/column/zsh/024/index.html の記事からコピペした.zshrc
# users generic .zshrc file for zsh(1)
# http://news.mynavi.jp/column/zsh/024/index.html
## Environment variable configuration
#
# LANG
#
export LANG=ja_JP.UTF-8
case ${UID} in
0)
@imudak
imudak / .gdbinit
Created April 18, 2012 07:57
$HOME/.gdbinit
define z
fin
end
define go
tbreak $arg0
c
end
@imudak
imudak / Rakefile
Created January 20, 2011 16:30 — forked from tdtds/MOVED
#
# Rakefile for self publishing ebook of Kindle3 made by scanning paper book.
#
# modify parameters by your environment:
# SRC (must): source PDF file name.
# TOP, BOTTOM, LEFT, RIGHT: default margins (pixel) of trimming.
# SIZE: adjust image size by destination format.
# LEVEL (optional): level option of ImageMagic.
#
# for Debian or Ubuntu user, needs packages below: