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
require 'rubygems' | |
require 'nokogiri' | |
puts Nokogiri::VERSION | |
module Nokogiri | |
module HTML | |
class Document < Nokogiri::XML::Document | |
class << self | |
def test_for_parse |
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
aaa | |
bbb | |
ccc | |
ddd | |
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
#!/usr/bin/env python | |
import re | |
import sys | |
def initilize_scl_dict(): | |
return { | |
'line_count': 0, | |
'found_set_e': False, |
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
mkdir -p tmp/x86_64-linux/nio4r_ext/2.4.0 | |
cd tmp/x86_64-linux/nio4r_ext/2.4.0 | |
/usr/local/ruby-2.4.0/bin/ruby -I. ../../../../ext/nio4r/extconf.rb | |
cd - | |
cd tmp/x86_64-linux/nio4r_ext/2.4.0 | |
/usr/bin/gmake | |
../../../../ext/nio4r/monitor.c: In function ‘NIO_Monitor_initialize’: | |
../../../../ext/nio4r/monitor.c:99:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | |
ev_io_init(&monitor->ev_io, NIO_Selector_monitor_callback, FPTR_TO_FD(fptr), monitor->interests); | |
^~~~~~~~~~ |
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
mkdir -p tmp/x86_64-linux/nio4r_ext/2.4.0 | |
cd tmp/x86_64-linux/nio4r_ext/2.4.0 | |
/usr/local/ruby-2.4.0/bin/ruby -I. ../../../../ext/nio4r/extconf.rb | |
cd - | |
cd tmp/x86_64-linux/nio4r_ext/2.4.0 | |
/usr/bin/gmake | |
../../../../ext/nio4r/monitor.c: In function ‘NIO_Monitor_initialize’: | |
../../../../ext/nio4r/monitor.c:103:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | |
ev_io_init(&monitor->ev_io, NIO_Selector_monitor_callback, FPTR_TO_FD(fptr), monitor->interests); | |
^~~~~~~~~~ |
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
$ bundle exec ./configure --prefix=/usr/local/rbx-3.9dev | |
Checking clang: found | |
Checking clang++: found | |
Detected old configuration settings, forcing a clean build | |
Checking for 'llvm-config': found! (version 4.0.0 - api: 400) | |
Checking sizeof(short): 2 bytes | |
Checking sizeof(int): 4 bytes | |
Checking sizeof(void*): 8 bytes |
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
import cerberus | |
document = { | |
'a_list': [ | |
{ | |
'name': 'a1', | |
'value': 1, | |
}, | |
{ |
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
$ ./autogen.sh --noconfigure | |
$ ./configure --prefix="$(pwd)/dest" | |
$ make | |
$ cd python | |
$ python setup.py build | |
$ python3 setup.py build | |
$ cd .. | |
$ make install | |
$ tox | |
... |
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
$ ./autogen.sh --noconfigure | |
$ ./configure --prefix="$(pwd)/dest" | |
$ make | |
$ cd python | |
$ python setup.py build | |
$ python3 setup.py build | |
$ cd .. | |
$ make install | |
$ LD_LIBRARY_PATH="$(pwd)/dest/lib" \ | |
ldd python/build/lib.*/rpm/*.so |
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
#!/usr/bin/env python | |
import sys | |
import rpm | |
if __name__ == "__main__": | |
if len(sys.argv) < 3: | |
print("Usage: %s <specfile> <macro>" % sys.argv[0]) | |
sys.exit(1) |
OlderNewer