Instantly share code, notes, and snippets.

View 2018-03-29-1-1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2018-04-03-2-2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2018-04-07-3-3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2018-04-18-4-4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View config.yml
version: 2
jobs:
build:
docker:
- image: circleci/ruby:2.5-node-browsers
environment:
RAILS_ENV: test
# https://circleci.com/docs/2.0/faq/#how-can-i-set-the-timezone-in-docker-images
TZ: "/usr/share/zoneinfo/Asia/Tokyo"
- image: circleci/postgres:10-alpine
View SearchSimilarWords.py
import gensim
import numpy as np
import csv
from scipy import spatial
class SearchSimilarWords():
def __init__(self, words_csv_path, target_index, model_path):
self.num_features = 300
self.words_array = self.build_words_array(words_csv_path)
View box_davfs2
# execute this to activate box strage
!apt-get install davfs2
!echo https://dav.box.com/dav [BOXのEmail] [BOXのパスワード] >> /etc/davfs2/secrets
!mkdir /content/box_dir
!mount -t davfs https://dav.box.com/dav/ /content/box_dir
View gcpug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View julia-ruby.rb
require 'fiddle'
require 'fiddle/import'
module Julia
extend Fiddle::Importer
# Linux
dlload Fiddle.dlopen('libjulia.so.0.6')
typealias "uint8_t", "unsigned char"
View image_segmentation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.