Skip to content

Instantly share code, notes, and snippets.

Yuichi Motoyama yomichi

  • ISSP, The University of Tokyo
  • Kashiwa, Japan
Block or report user

Report or block yomichi

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
View hphi_AFHchain_spectrum.sh
L=16
omegamax=3.15
omegaim=0.1
output="spectrum-L${L}.dat"
MPIEXEC="mpiexec -np 2"
HPHI=HPhi
cat << PARAM > gs.in
@yomichi
yomichi / switch_depwarn.jl
Last active Sep 27, 2015
switch on/off deprecation warning on running.
View switch_depwarn.jl
#=
Yuichi Motoyama 2015
This is distributed under the Boost Software License Version 1.0
http://www.boost.org/LICENSE_1_0.txt
=#
@enum DepwarnFlag DepwarnOff=0 DepwarnOn=1 DepwarnError=2
doc"""
View any_wrapper.cpp
#include <iostream>
#include <boost/any.hpp>
#include <complex>
struct Any{
boost::any any_;
template <class T>
Any(T const& x):any_(x){}
template <class T>
@yomichi
yomichi / collatz.jl
Created Dec 19, 2014
JuliaLangAC2014 -- Day 18 sample codes
View collatz.jl
function collatz_branch(N::Integer)
i = 0
while N > 1
N = iseven(N) ? div(N,2) : 3N+1
i += 1
end
return i
end
function collatz_select(N::Integer)
@yomichi
yomichi / inline.jl
Last active Aug 29, 2015
sample and result of @inline macro
View inline.jl
#=
These sample functions are taken from https://github.com/JuliaLang/julia/pull/8297
=#
function f(x)
y = x+5
z = y*y
q = z/y
m = q-3
end
View ED-AFHdimer
{
"metadata": {
"name": "",
"signature": "sha256:703efec684d913428f3f08b8382caa48d896abd8fbbda8a2bfe09bb52f79dd64"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:51b3cd3e69f2d720c60a
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:8fe3aeecf046ae99ade6a8262511f6d0fc49eae9c9c26f63c5e6be07910c05c7"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@yomichi
yomichi / initial_time
Last active Jan 2, 2016
initial time of several script languages
View initial_time
$ time julia -e ''
real 0m0.268s
user 0m0.261s
sys 0m0.066s
$ time julia-0.2 -e ''
real 0m2.395s
user 0m2.433s
sys 0m0.117s
You can’t perform that action at this time.