Skip to content

Instantly share code, notes, and snippets.

Yas Okada yasuhiro-okada-aktsk

  • Tokyo
Block or report user

Report or block yasuhiro-okada-aktsk

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 redux-test.js
import {expect} from 'chai';
import reducer from '../index'
describe('image_uploader reducer', () => {
describe('init', () => {
it('should initialize state', () => {
const action = {}
const result = {
View actions.js
mport {createAction} from 'redux-actions'
import {METHOD_GET, METHOD_POST, METHOD_PUT, createApiMeta} from '../../../common/js/actions/helpers/api';
export const aaaGet = createAction('AAA_GET',
() => ( null ),
(id) => createApiMeta(`/api/company_branches/${id}`, null, METHOD_GET));
View rails g
# model
rails g model Company --no-migration -t rspec
# controller (page)
rails g controller Rules -t rspec
# scaffold
rails generate scaffold Plan -t rspec
View elixir_google_place.ex
defmodule GooglePlaces do
@moduledoc false
use HTTPoison.Base
#require Logger
@text_search "/textsearch/json?key=<api key>"
View phoenix auth model
mix phoenix.gen.json UserAuth user_auths email:string encrypted_password:string password:string type:string
View ecto_gen_migration.ex
mix ecto.gen.migration add_posts_table
View js_log.js
console.debug("%O", obj)
View make_fake.exs
alias SampleElixirEctoSelect.RssFeed 0..99,
fn _ ->
params = %{
feed_url: Faker.Internet.url,
title: Faker.Commerce.product_name,
View elixir_logger.ex
require Logger "path: " <> inspect(conn.params["paths"])
You can’t perform that action at this time.