Skip to content

Instantly share code, notes, and snippets.

@bowbowbow
bowbowbow / practice3_2_smooth.cpp
Created June 18, 2017 14:52
그래픽스 태양계 모형 과제
#include <GL/freeglut.h>
#include <GL/glu.h>
#include <GL/gl.h>
static int Day = 0, Time = 0;
void MyDisplay()
{
glClear(GL_COLOR_BUFFER_BIT |GL_DEPTH_BUFFER_BIT);
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define mp make_pair
#define MN 1000
int matrix[MN][MN];
#define MAT vector<vector<double> >
@bowbowbow
bowbowbow / pintrust_v3.cpp
Created June 2, 2017 05:23
pintrust_v3.cpp
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define mp make_pair
#define MN 1000
int matrix[MN][MN];
#define MAT vector<vector<double> >
@bowbowbow
bowbowbow / pintrust_v2.cpp
Last active May 26, 2017 07:05
makeEdge2, 3를 만들어야하고 propagate 과정이 한번에 일어나도록 합친 버전
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define mp make_pair
#define MN 1000
int matrix[MN][MN];
#define MAT vector<vector<double> >
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define mp make_pair
#define MN 1000
int matrix[MN][MN];
#define MAT vector<vector<double> >
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define mp make_pair
#define MN 1000
int matrix[MN][MN];
#define MAT vector<vector<double> >
#include <iostream>
#include <cmath>
#include <vector>
#include <functional>
#include <random>
#include <ctime>
using namespace std;
double sigmoid(double x) {
const page = require('webpage').create();
const $ = require('jquery');
const util = require('util');
const _ = require('lodash');
const url = 'https://medium.com/tag/space';
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36';
page.viewportSize = {
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule DraftEditorCompositionHandler
* @flow
#addit-widget-card-tag-wrapper{
display: block;
position: absolute;
width: 160px;
height: 20px;
bottom: 0px;
left: 20px;
background:{
repeat: no-repeat;
size: 9px auto;