Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Eito Katagiri eitoball

🏠
Working from home
Block or report user

Report or block eitoball

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
@eitoball
eitoball / Main.elm
Created Dec 27, 2019
マンデルブロ集合
View Main.elm
module Main exposing (main)
import Browser
import Browser.Dom exposing ( Viewport, getViewport )
import Browser.Events exposing ( onMouseMove, onResize )
import Html exposing ( Html )
import Html.Attributes exposing ( height, style, width )
import Json.Decode as Decode exposing ( Decoder )
import Math.Vector2 exposing ( Vec2, vec2 )
import Math.Vector3 exposing ( Vec3, vec3 )
View lifegame.exs
defmodule Lifegame do
@size 5
def publish_status(_, _, []), do: :ok
def publish_status(step, status, [node|rest]) do
send(node, {status, step, status})
publish_status(step, status, rest)
end
View rails_template.rb
gem 'haml-rails'
gem_group :development do
gem 'factory_bot_rails', group: :test
gem 'rubocop', group: :test
gem 'rubocop-performance', group: :test
gem 'rubocop-rails', group: :test
gem 'rspec-rails', group: :test
end
View Main.elm
import Browser
import Html exposing (Attribute, Html, button, div, node, p, text)
import Html.Attributes exposing (classList)
import Html.Events exposing (onClick)
type alias Model = { message : String , flush : Bool }
main =
Browser.sandbox
{ init = { message = "" , flush = False }
@eitoball
eitoball / gist:9843d28f9944be05e02ef6ca2a5e28cd
Last active Sep 11, 2018
Homebrew qt@5.5 for XCode 9.4
View gist:9843d28f9944be05e02ef6ca2a5e28cd
diff -u a/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm b/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
--- a/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
+++ b/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
@@ -736,7 +736,7 @@
QFixed QCoreTextFontEngine::emSquareSize() const
{
- return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
+ return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
}
View phoenix_heroku.md
View phoenix_app.md

Phoenix Human アプリ・チュートリアル

ツールを知る

  • テキストエディタ
  • ターミナル
  • Webブラウザ

1. アプリケーションを作る

View phoenix_install.md
View keybase.md

Keybase proof

I hereby claim:

  • I am eitoball on github.
  • I am eitoball (https://keybase.io/eitoball) on keybase.
  • I have a public key ASAW4gbDGMp9WUN2YUqto7niKWcgKdORhD6l8etfyiGu8go

To claim this, I am signing this object:

@eitoball
eitoball / rubytokai_30.rb
Created Feb 1, 2014
Ruby東海 第30回勉強会でのコードレビューしたコードを参考にこんな風に書いたらいいかなぁと思いながら書いてみました。あくまでも、こんな風でということで一度も動かしていないため、色々問題があると思います。
View rubytokai_30.rb
# encoding: utf-8
require 'yaml'
class Executer
def initialize(dir)
@dir = dir
end
def execute
files do |file|
You can’t perform that action at this time.