Skip to content

Instantly share code, notes, and snippets.

🐢
|ω・)و ̑̑༉

yukpiz yukpiz

🐢
|ω・)و ̑̑༉
Block or report user

Report or block yukpiz

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
@yukpiz
yukpiz / syntax.vim
Created Apr 8, 2015
Get syntax type name of the cursor position.
View syntax.vim
echo synIDattr(synID(line('.'), col('.'), 0), 'name')
@yukpiz
yukpiz / pg_restore.sh
Created Apr 9, 2015
PostgreSQL database restore command.
View pg_restore.sh
#!/bin/sh
pg_restore -h {host} -d {database} -U {user} -p {port} backup.dmp
@yukpiz
yukpiz / cpp-in-vim.md
Last active Aug 29, 2015
Write C++ in Vim.
View cpp-in-vim.md

VimでC++を書く設定や操作

1. 設定の書き方

@yukpiz
yukpiz / number.cpp
Created Apr 13, 2015
"number" problem code of paiza.
View number.cpp
/*
* [Compile]
* g++ -std=c++11 number.cpp -o number
*/
#include <iostream>
#include <vector>
using namespace std;
@yukpiz
yukpiz / ball.cpp
Last active Aug 29, 2015
"ball" problem code of paiza.
View ball.cpp
/*
* [Compile]
* g++ -std=c++11 ball.cpp -o ball
*/
#include <vector>
#include <iostream>
using namespace std;
@yukpiz
yukpiz / price.cpp
Created Apr 13, 2015
"price" problem code of paiza.
View price.cpp
/*
* [Compile]
* g++ -std=c++11 price.cpp -o price
*/
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
@yukpiz
yukpiz / tag.cpp
Last active Aug 29, 2015
"tag" problem code of paiza.
View tag.cpp
/*
* [Compile]
* g++ -std=c++11 string.cpp -o string
*/
#include <iostream>
using namespace std;
int main(
@yukpiz
yukpiz / database.py
Created May 8, 2015
Connection the PostgreSQL for Python.
View database.py
#-*- encoding: utf-8 -*-
import psycopg2
class PostgreSQL:
connects = {
"host": "host"
"port": "5432",
"dbname": "dbname",
"user": "postgres",
"password": "postgres",
View conoha_api.md

Conoha APIを試してみるメモ

1. 必要な情報
  • テナントID
  • 各APIごとのエンドポイント
  • APIユーザー名(ConohaアカウントではないAPIアカウント作成時に自動発行されるもの)
  • パスワード
2. トークンの取得
You can’t perform that action at this time.