Skip to content

Instantly share code, notes, and snippets.

View enpedasi's full-sized avatar

Yoshihiro Ueno enpedasi

  • Delight Systems., co Ltd.
  • Fukuoka, Japan
View GitHub Profile
@kenmori
kenmori / inlineFragments_typename.md
Last active June 2, 2021 13:11
Apollo x GraphQLのinlineFragmentsと(インラインフラグメント)と__typename(タイプネーム)

Apollo x GraphQLのinlineFragmentsと(インラインフラグメント)と__typename(タイプネーム)

試す場合

自分の情報取得

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace csharp_agg_csv2
@bigsleep
bigsleep / Dockerfile
Created February 2, 2018 17:08
haskell:8.2.2
## created from https://github.com/freebroccolo/docker-haskell
## Dockerfile for a haskell environment
FROM debian:stretch
## ensure locale is set during build
ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr && \
echo 'deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main' > /etc/apt/sources.list.d/ghc.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6F88286 && \
@lkamal
lkamal / wget-jdk-oracle-install-example.txt
Last active July 5, 2019 11:41 — forked from sr75/wget-jdk-oracle-install-example.txt
Install Oracle JAVA JDK 9.0.4 version via Linux command line with wget
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.rpm"
# tarball
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
anonymous
anonymous / ssd.py
Created March 18, 2017 15:39
ssd for Keras API 2
"""Keras implementation of SSD."""
import keras.backend as K
from keras.layers import Activation
#from keras.layers import AtrousConvolution2D
from keras.layers import Convolution2D
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import GlobalAveragePooling2D
from keras.layers import Input
@harv
harv / glibc-2.17_centos6.sh
Last active March 1, 2024 08:42
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
@iddan
iddan / elementsfrompoint.js
Last active June 11, 2021 07:10
document.elementsFromPoint Polyfill
'use strict';
if (!document.elementsFromPoint) {
document.elementsFromPoint = elementsFromPoint;
}
function elementsFromPoint(x, y) {
var parents = [];
var parent = void 0;
do {

1 Introduction

The following document describes the Erlang BEAM instruction set used for the BEAM threaded-code emulation. To make it self contained the document starts with a short introduction to the BEAM Virtual Machine clarifying different notions used later in the text.

このドキュメントの詳細はErlang BEAMのBEAMVMでつかわれている命令セットである。文章の後半に含まれているBEAM Virtual Machineのさまざまな記法をこの文章の最初にかかれています。

1.1 Historical Note

This document describes BEAM as it was in 1997. BEAM has grown and changed significantly between then and the time this note was added (2012). This information is mainly for historical interest.

@omasanori
omasanori / gist:7858569
Last active April 30, 2024 12:43
Rustのパターンマッチの話

Rustのパターンマッチの話

既に穴だらけですが、やれるだけやっていきます。今回はパターンマッチの話です。

TL;DR(経験者向け)

はい、あなたのよく知るパターンマッチです。ガードも使えますが、他の言語でガードを使うパターンの一部はOCamlのorパターンと同等の機能や範囲を表す機能によって置き換えることができます。