This file contains 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
/* | |
libsrcml_convenience.cpp | |
Demonstrates basic use of libsrcml convenience function srcml() | |
for converting to and from the srcML format | |
Error handling removed for clarity | |
*/ | |
#include <srcml.h> |
This file contains 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
/* | |
libsrcml_create.cpp | |
Demonstrates use of libsrcml functions for writing | |
a srcML file | |
Error handling removed for clarity | |
*/ | |
#include <srcml.h> |
This file contains 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
/* | |
libsrcml_extract.cpp | |
Demonstrates use of libsrcml functions for reading | |
a srcML file | |
Error handling removed for clarity | |
*/ | |
#include <srcml.h> |
This file contains 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
git rev-list HEAD | tail -n 1 | xargs -I% git log --date=iso % | grep "Date:" | cut -d":" -f2- | cut -c4- | cut -d"+" -f1 |
This file contains 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
ls . | xargs -I^ bash -c 'echo -n ^; echo -en "\t"; cd ^; git rev-list HEAD | tail -n 1 | xargs -I% git log --date=iso % | grep "Date:" | cut -d":" -f2- | cut -c4- | cut -d"+" -f1' |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
all: | |
swig -Wall -python srcml.i | |
gcc -fPIC -Wall -Wextra -shared srcml_wrap.c -o _srcml.so -L/usr/local/lib/ -lsrcml -I/usr/include/python2.7/ -lpython2.7 | |
clean: | |
rm -f srcml_wrap.c _srcml.so srcml.py srcml_wrap.c |
This file contains 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
// | |
// ClassStructTiming.swift | |
// | |
// Compare class and struct timing | |
// | |
// Derived from https://github.com/knguyen2708/StructVsClassPerformance | |
import Foundation | |
class IntClass { |
This file contains 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
// | |
// Setup for UITextFieldDelegate | |
// | |
// Note: Comments with this label are to explain semantics of iOS | |
// Do not use comments like these in your projects | |
import UIKit | |
class ViewController: UIViewController, UITextFieldDelegate { |
This file contains 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
// | |
// Moving keyboard for item | |
// | |
// Note: Comments with this label are to explain semantics of iOS | |
// Do not use comments like these in your projects | |
import UIKit | |
class ViewController: UIViewController, UITextFieldDelegate { |
OlderNewer