Skip to content

Instantly share code, notes, and snippets.

View bitdewy's full-sized avatar

bitdewy bitdewy

  • Bytedance
  • beijing
View GitHub Profile
@bitdewy
bitdewy / 1.m
Last active December 15, 2015 21:29
Project Euler #1 in Object-C
//
// 1.m
// ProjectEuler
//
// Created by bitdewy on 4/6/13.
// Copyright (c) 2013 bitdewy. All rights reserved.
//
#import <Foundation/Foundation.h>
@bitdewy
bitdewy / stars.cpp
Created August 10, 2012 10:55
openGL practice - stars
#include <iostream>
#include <map>
#include <vector>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/scoped_array.hpp>
#include <gl/glut.h>
#include <gl/SOIL.h>
@bitdewy
bitdewy / format_src.py
Created April 21, 2012 11:33
format src, mormalize new line token, remove space at end of line and expand tabs
# -*- coding: UTF-8 -*-
'''
format source code
normalize newline token, remove space at end of line and expand tabs
wrote in python 3k
@Author: bitdewy (bitdewy (at) gmail.com)
'''
import locale, os, re, stat