This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // 1.m | |
| // ProjectEuler | |
| // | |
| // Created by bitdewy on 4/6/13. | |
| // Copyright (c) 2013 bitdewy. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; | |
| ;;;; 1.lisp | |
| ;;;; ProjectEuler | |
| ;;;; | |
| ;;;; Created by bitdewy on 4/7/13. | |
| ;;;; Copyright (c) 2013 bitdewy. All rights reserved. | |
| ;;;; | |
| ;; Project Euler #1 | |
| (defun sum_of_values_multiples (max values) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <map> | |
| #include <vector> | |
| #include <boost/bind.hpp> | |
| #include <boost/function.hpp> | |
| #include <boost/noncopyable.hpp> | |
| #include <gl/glut.h> | |
| #include <gl/SOIL.h> | |
| class KeyboardManger : boost::noncopyable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; | |
| ;;;; 2.lisp | |
| ;;;; ProjectEuler | |
| ;;;; | |
| ;;;; Created by bitdewy on 4/8/13. | |
| ;;;; Copyright (c) 2013 bitdewy. All rights reserved. | |
| ;;;; | |
| ;; Project Euler #2 | |
| (defun fibonacci (max) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; | |
| ;;;; 3.lisp | |
| ;;;; ProjectEuler | |
| ;;;; | |
| ;;;; Created by bitdewy on 4/9/13. | |
| ;;;; Copyright (c) 2013 bitdewy. All rights reserved. | |
| ;;;; | |
| ;; Project Euler #3 | |
| (defun factorization (number) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; | |
| ;;;; 5.lisp | |
| ;;;; ProjectEuler | |
| ;;;; | |
| ;;;; Created by bitdewy on 4/10/13. | |
| ;;;; Copyright (c) 2013 bitdewy. All rights reserved. | |
| ;;;; | |
| ;; Project Euler #5 | |
| (defun smallest_multiple1 (max) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; | |
| ;;;; 6.lisp | |
| ;;;; ProjectEuler | |
| ;;;; | |
| ;;;; Created by bitdewy on 4/10/13. | |
| ;;;; Copyright (c) 2013 bitdewy. All rights reserved. | |
| ;;;; | |
| ;; Project Euler #6 | |
| (defun square (x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| margin: 0; | |
| padding: 0; | |
| font: 12px Tahoma, arial, sans-serif; | |
| } | |
| header { | |
| font-family: 'Segoe UI Light', 'Segoe UI', 'Microsoft Jhenghei', '微软雅黑', sans-serif; | |
| color: #666; | |
| font-size: 50px; |
OlderNewer