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
### Keybase proof | |
I hereby claim: | |
* I am jay3sh on github. | |
* I am jay3sh (https://keybase.io/jay3sh) on keybase. | |
* I have a public key ASDisveofvyc0qtIYvkSUPKfTfFhBhMTHkUTUUP9SQKH1Ao | |
To claim this, I am signing this object: |
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
cmake_minimum_required(VERSION 3.0.0) | |
project(GSL) | |
set(CMAKE_C_COMPILER "/usr/bin/gcc") | |
set(CMAKE_VERBOSE_MAKEFILE ON) | |
file(GLOB_RECURSE SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.c) | |
file(GLOB_RECURSE INC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.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
#!/bin/bash | |
# | |
# When you are working on your macbook sitting in cafe and you have to go pee, | |
# you need some way to guard you machine. | |
# | |
# Start this script, remove any earphones, and go do the job. | |
# The assumption is the thief will close the lid of the laptop before taking it away. | |
# This script detects the closing of the lid and plays some loud audio that will | |
# likely distract the thief and/or grab attention of nearby people, making the |
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
var crypto = require('crypto'); | |
function run(algo) { | |
var hash = crypto.createHash(algo); | |
hash.update('operation'); | |
hash.update('1'); | |
hash.update('A34'); | |
hash.update('ABS'); | |
return hash.digest('hex'); |
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
# While invoking a function you don't have to put the arguments in parenthesis. | |
# Instead of writing | |
console.log(message) | |
# You can write | |
console.log message | |
# Although this is convenient, it can be confusing for nested function calls | |
foo bar 2,3 | |
# is equivalent to | |
foo(bar(2,3)) |
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
methodfoo : (arg0) -> | |
func = => x = @someproperty | |
func() |
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
/* | |
* This Program hangs for values of TOTAL >10 | |
* consuming about 90% when run with OCC 6.5.3 on Ubuntu 11.04 | |
* | |
* Build instructions | |
* | |
* g++ -o forum_main.o -c -I$OCC_INSTALL_DIR/inc forum_main.cpp | |
* | |
* g++ -o main -Xlinker -rpath -Xlinker $OCC_INSTALL_DIR/lib forum_main.o \ | |
* -L$OCC_INSTALL_DIR/lib -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d -lTKBRep -lTKIGES -lTKSTL -lTKSTEP -lTKSTEPAttr -lTKSTEP209 -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset |
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
/* | |
* Tested on node 0.6, Ubuntu | |
*/ | |
#!/usr/bin/node | |
COLOR_GREEN="\033[01;32m" | |
COLOR_RED="\033[01;31m" | |
COLOR_YELLOW="\033[01;33m" | |
COLOR_BLUE="\033[01;34m" | |
COLOR_NORMAL="\033[00m" |
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 sys | |
from OCC.gp import gp_Pnt | |
from OCC.BRep import BRep_Builder | |
from OCC.BRepBuilderAPI import BRepBuilderAPI_Sewing | |
from OCC.BRepBuilderAPI import BRepBuilderAPI_MakePolygon | |
from OCC.BRepBuilderAPI import BRepBuilderAPI_MakeFace | |
from OCC.BRepBuilderAPI import BRepBuilderAPI_MakeVertex | |
from OCC.TopoDS import TopoDS_Compound | |
from OCC import StlAPI |
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
#!/usr/bin/python | |
import sys | |
import math | |
sys.path.append('./src') | |
from cadmium import * | |
stlfname = sys.argv[1] |
NewerOlder