Skip to content

Instantly share code, notes, and snippets.

@drewwells
drewwells / SassMeister-input-HTML.html
Created December 7, 2014 22:48
Generated by SassMeister.com.
<div>Hello</div>
@drewwells
drewwells / build_log.txt
Created January 22, 2015 16:35
libsass build with Swig on darwin64 against Go 1.4
Applications/Xcode.app/Contents/Developer/usr/bin/make -f ../../Makefile CXXFLAGS='-Wall -std=c++11' SRCDIR='' CSRCS='cencode.c' CXXSRCS='ast.cxx base64vlq.cxx bind.cxx constants.cxx context.cxx contextualize.cxx copy_c_str.cxx cssize.cxx error_handling.cxx eval.cxx expand.cxx extend.cxx file.cxx functions.cxx inspect.cxx node.cxx json.cxx output_compressed.cxx output_nested.cxx parser.cxx position.cxx prelexer.cxx remove_placeholders.cxx sass.cxx sass_util.cxx sass_values.cxx sass_context.cxx sass_functions.cxx sass_interface.cxx sass2scss.cxx source_map.cxx to_c.cxx to_string.cxx units.cxx utf8_string.cxx util.cxx' SWIG='../../../preinst-swig -v' \
TARGET='example' INTERFACE='example.i' go_cpp
../../../preinst-swig -v -go -c++ -intgosize 64 `if false ; then echo -gccgo; fi` -o example_wrap.cxx example.i
Language subdirectory: go
Search paths:
./
./swig_lib/go/
/Users/drew/code/swig/Lib/go/
./swig_lib/
/Users/drew/code/swig/Lib/
@drewwells
drewwells / SassMeister-input.scss
Created February 4, 2015 18:01
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
nav
ul
margin: 0
padding: 0
list-style: none
@drewwells
drewwells / SassMeister-input.scss
Created February 23, 2015 14:34
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
%branch { color: brown; }
%leaf { color: green; }
div.branch {
@extend %branch;
.leaf {
@drewwells
drewwells / reflectSlice.go
Last active August 29, 2015 14:18
Examples of reflection with slices
func copySlice(dst interface{}, src interface{}) error {
d := reflect.ValueOf(dst)
if !d.CanAddr() {
d = d.Elem()
} else {
return errors.New("dst must be pointer")
}
s := reflect.ValueOf(src)
c := reflect.MakeSlice(d.Type(), s.Len(), s.Len())
reflect.Copy(c, s)
[ 50%] Compiled prelexer.cpp
[ 52%] Compiled plugins.cpp
[ 54%] Compiled sass.cpp
[ 56%] Compiled sass2scss.cpp
[ 58%] Compiled remove_placeholders.cpp
[ 60%] Compiled sass_functions.cpp
[ 62%] Compiled sass_context.cpp
[ 64%] Compiled sass_values.cpp
[ 66%] Compiled sass_interface.cpp
[ 68%] Compiled sass_util.cpp
@drewwells
drewwells / qo -x
Last active August 29, 2015 14:19
libtool
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c -o position.lo position.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c position.cpp -o position.o
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wall -O2 -g -O2 -c -o cencode.lo cencode.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -O2 -g -O2 -c cencode.c -o cencode.o
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c -o ast.lo ast.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c ast.cpp -o ast.o
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c -o base64vlq.lo base64vlq.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c base64vlq.cpp -o base64vlq.o
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Wall -O2 -std=c++0x -g -O2 -c -o bind.lo bind.cpp
l
@drewwells
drewwells / linux 64bit install
Last active August 29, 2015 14:20
Wellington install formula
brew install https://raw.githubusercontent.com/drewwells/homebrew/23eb4de/Library/Formula/wellington.rb
@drewwells
drewwells / SassMeister-input.scss
Created May 26, 2015 00:16
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
a { width: 3.0px }
@drewwells
drewwells / SassMeister-input.scss
Created July 27, 2015 20:41
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
.foo {
color: red;
@incldue box-sizing(border-box);
}