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
| awk '/insert_code_start/,/insert_code_end/ { if ( $0 ~ /insert_code_end/) print " // insert code here"; next} 1' < test.cpp > text_sub.cpp | |
| # | |
| # Example | |
| # | |
| # void main(){ | |
| # // insert_code_start | |
| # foo(); | |
| # // insert_code_end |
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 "GLError.h" | |
| #include <iostream> | |
| #include <string> | |
| #ifdef WIN32 | |
| # include <GL/glew.h> | |
| #elif __APPLE__ | |
| # include <OpenGL/gl3.h> | |
| #else | |
| # include <GL3/gl3.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
| // | |
| // PerformanceTool.h | |
| // | |
| // Created by Morten Nobel-Jørgensen on 1/23/13. | |
| // Copyright (c) 2013 Morten Nobel-Joergensen. All rights reserved. | |
| // | |
| // Create simple performance meassures in ms | |
| // | |
| // Usage: | |
| // |
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
| import javax.imageio.ImageIO; | |
| import javax.swing.*; | |
| import javax.swing.border.LineBorder; | |
| import java.awt.*; | |
| import java.awt.datatransfer.DataFlavor; | |
| import java.awt.datatransfer.Transferable; | |
| import java.awt.datatransfer.UnsupportedFlavorException; | |
| import java.awt.dnd.*; | |
| import java.awt.event.MouseAdapter; | |
| import java.awt.event.MouseEvent; |
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
| import javax.imageio.ImageIO; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.util.*; | |
| /** | |
| * Create an ASCII letters sorted by intensity. By including the inverse letters | |
| * the number of combinations are increased. | |
| * |
NewerOlder