Skip to content

Instantly share code, notes, and snippets.

# frozen_string_literal: true
require 'sinatra'
require 'sinatra/reloader'
require 'sinatra/json'
post '/images' do
image = {name: 'i_like_dog_very_much', url: 'https://example.com/image.png'}
# p request
FROM ruby:2.3.3
ENV LANG C.UTF-8
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN npm install -g typescript
ENV APP /app
RUN mkdir $APP
WORKDIR $APP
ADD Gemfile Gemfile
@otukutun
otukutun / たきざわっかそん.md
Last active August 29, 2015 14:20
たきざわっかそん概要

概要

たきざわっかそん2015/5/3についてかきます。

テーマ

  • 未定

目標

  • リリースする。

日時と場所

/*
* Mimic-GAS is a XML-RPC client for Google Apps Script ( based on mimic.js )
*
* Change Log
* - Support (basic) authentication
* - Add handling response value as string when value type is not defined
* - Replace with class supported Google Apps Script
* ++ XmlHttpRequest -> UrlFetch
* ++ DOM -> Xml
* ++ Base64 -> Utilities.base64Encode/base64Decode
@otukutun
otukutun / uninstall_chefdk_for_mac.sh
Created May 24, 2014 03:35
uninstall_chefdk_for_mac
#!/bin/bash
if [ -e /opt/chefdk ]; then
rm -rf /opt/chefdk
else
echo "can not found chefdk"
fi
rm /usr/bin/berks
rm /usr/bin/chef
if has('vim_starting')
set nocompatible "vi互換解除
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
"Required:
call neobundle#begin(expand('~/.vim/bundle/'))
alias vi='vim'
alias ll="ls -l"
#import git-prompt
source ~/.git-prompt.sh
#import git-completion.bash
source ~/.git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\W\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
set expandtab
set tabstop=4
set shiftwidth=4
set cindent
set expandtab
set tabstop=4
set shiftwidth=4
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au BufRead,BufNewFile *.py setfiletype python
au BufRead,BufNewFile *.php,ctp :set dictionary=~/.vim/dict/php.dict filetype=php
au BufRead,BufNewFile *.twig set filetype=htmljinja
au BufRead,BufNewFile *.less set filetype=css
au BufRead,BufNewFile *.html set filetype=html
augroup END