Skip to content

Instantly share code, notes, and snippets.

undefined
undefined
undefined
@edy555
edy555 / openlase-osx-cmake.patch
Created March 16, 2012 17:26
patch to openlase for MacOSX with cmake
diff --git a/Modules/CMakeASM_YASMInformation.cmake b/Modules/CMakeASM_YASMInformation.cmake
index 50b2848..3d7b330 100644
--- a/Modules/CMakeASM_YASMInformation.cmake
+++ b/Modules/CMakeASM_YASMInformation.cmake
@@ -1,7 +1,13 @@
set(ASM_DIALECT "_YASM")
set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS asm)
-if(UNIX)
+if(APPLE)
@edy555
edy555 / gc4marlin.rb
Created September 17, 2012 12:02
convert g-code to acceptable format for sprinter or marlin.
#!/usr/bin/env ruby
lastcmd="G0"
while line = gets
print "#{lastcmd}" if /^\s/ =~ line
print line
if /G(\d+)/ =~ line then
case $1.to_i
when 0 .. 3
lastcmd=$&
end
@edy555
edy555 / helloworld.gcode
Created September 18, 2012 22:28
G-Code generated by PyCAM and processed one by script
;PYCAM-META-DATA: Filename: /Users/takahasi/Desktop/helloworld.dxf
;PYCAM-META-DATA: Timestamp: 2012-09-17 19:34:47.608634
;PYCAM-META-DATA: Version: 0.5.1
;Estimated machine time: 5 minutes
G40 (disable tool radius compensation)
G49 (disable tool length compensation)
G80 (cancel modal motion)
G54 (select coordinate system 1)
G90 (disable incremental moves)
G21 (metric)
@edy555
edy555 / gnuradio-ubuntu-install.log
Created October 25, 2012 15:44
build-gnuradio installation log
user@ubuntu12:~$ wget http://www.sbrac.org/files/build-gnuradio
--2012-10-25 00:40:04-- http://www.sbrac.org/files/build-gnuradio
Resolving www.sbrac.org (www.sbrac.org)... 174.142.32.20
Connecting to www.sbrac.org (www.sbrac.org)|174.142.32.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 29827 (29K) [text/plain]
Saving to: `build-gnuradio'
100%[======================================>] 29,827 31.1K/s in 0.9s
@edy555
edy555 / blink.rb
Created November 6, 2012 23:44
LED blink with FT232RL bitbang mode and ruby
@edy555
edy555 / blink.py
Created November 12, 2012 16:33
blink led using FT232RL bitbang mode with pylibftdi and python
@edy555
edy555 / gr-air-modes.rb
Created November 13, 2012 16:03
gr-air-modes Homebrew Formula
require 'formula'
class GrAirModes < Formula
homepage 'http://www.hamradioscience.com/the-rtl-2832u-sdr-and-ads-b/'
head 'https://github.com/bistromath/gr-air-modes.git'
depends_on 'cmake' => :build
depends_on 'gnuradio'
depends_on 'rtlsdr'
depends_on 'boost'