Skip to content

Instantly share code, notes, and snippets.

View odanado's full-sized avatar

odanado odanado

View GitHub Profile
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0;i<(n);i++)
#define out(S) cout<<(S)<<endl;
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
// using ll = long long;
const int INF = 1e8;
#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int dx[4] = {1, 0, -1, 0};
#include <bits/stdc++.h>
using namespace std;
#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
import json
from twitter import OAuth, Twitter
with open('config.json') as f:
param = json.load(f)
t = Twitter(auth=OAuth(**param))
screen_name = '5percent_Dora'
items = []
max_id = None
ids = set()
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char id[7];
char name[21];
int height;
int weight;
} Student;
@odanado
odanado / build-llvm.bash
Created April 16, 2017 12:00 — forked from zchee/build-llvm.bash
Build llvm for OS X
#!/bin/bash
set -e
# Building LLVM on OSX CMake setup script
#
# Required:
# - clang by Xcode6 or later
# - cmake
# - ninja
#
#include <iostream>
#include <tuple>
#include <unordered_set>
using namespace std;
template <class T>
inline size_t hash_combine(std::size_t seed, T const& v) {
return seed ^ std::hash<T>()(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
#include <iostream>
#include <unordered_set>
#include <utility>
using namespace std;
namespace std {
template <typename T, typename S>
class hash<pair<T, S>> {
public: