Skip to content

Instantly share code, notes, and snippets.

7shi 7shi

Block or report user

Report or block 7shi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@7shi
7shi / gist:805326
Created Feb 1, 2011
extract JPEG from PDF by iTextSharp
View gist:805326
// iTextSharp: http://itextpdf.com/
// reference: http://www.vbforums.com/showthread.php?t=530736
void ExtractJpeg(string file)
{
var dir1 = Path.GetDirectoryName(file);
var fn = Path.GetFileNameWithoutExtension(file);
var dir2 = Path.Combine(dir1, fn);
if (!Directory.Exists(dir2)) Directory.CreateDirectory(dir2);
@7shi
7shi / 1.fs
Created Oct 15, 2019
[F#] Fable + KaTeX
View 1.fs
open System
open Fable.Core
open Fable.Core.JsInterop
open Browser.Types
open Browser
// ref. https://medium.com/@zaid.naom/f-interop-with-javascript-in-fable-the-complete-guide-ccc5b896a59f
[<Emit("convert($0, $1)")>]
let render output (input:string): unit = jsNative
@7shi
7shi / 1.fs
Last active Oct 15, 2019
[F#] Fable + MathJax
View 1.fs
open System
open Fable.Core
open Fable.Core.JsInterop
open Browser.Types
open Browser
// ref. https://medium.com/@zaid.naom/f-interop-with-javascript-in-fable-the-complete-guide-ccc5b896a59f
[<Emit("convert($0, $1)")>]
let render output (input:string): unit = jsNative
View binutils-2.21.1a-mipsel-pe.diff
diff -ur binutils-2.21.1.orig/bfd/config.bfd binutils-2.21.1/bfd/config.bfd
--- binutils-2.21.1.orig/bfd/config.bfd 2011-04-01 21:02:42 +0900
+++ binutils-2.21.1/bfd/config.bfd 2011-11-17 07:40:22 +0900
@@ -132,11 +132,6 @@
exit 1
;;
- mips*-*-pe*)
- echo "This target is obsolete and has been removed."
- exit 1
@7shi
7shi / __inst2.txt
Created Nov 28, 2012
AArch64(ARM64) instructions
View __inst2.txt
0e20b800 abs V, V
5ee0b800 abs D, D
1a000000 adc W, W, W
1a1f0000 adc W, W
9a000000 adc X, X, X
9a1f0000 adc X, X
3a000000 adcs W, W, W
3a1f0000 adcs W, W
ba000000 adcs X, X, X
ba1f0000 adcs X, X
@7shi
7shi / Bessel.ipynb
Last active Sep 24, 2018
Reverse Bessel Polynomial
View Bessel.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / Harmony.ipynb
Last active Aug 16, 2018
調和微分形式とスカラーポテンシャル
View Harmony.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / InfiniteProdSin.ipynb
Created Jul 25, 2018
sinの無限積分解による近似計算
View InfiniteProdSin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / hello.s
Created Sep 24, 2012
UNIX V6のアセンブラ版ハローワールド
View hello.s
mov $1, r0
sys write
hello
6
mov $0, r0
sys exit
.data
hello: <hello\n>
@7shi
7shi / Array.ipynb
Created Feb 19, 2018
[Julia] Array
View Array.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.