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/ruby | |
require 'optparse' | |
class SMU | |
# from zenstates | |
SMU_MSG_TransferTableToDram = 0x3 | |
SMU_MSG_GetDramBaseAddress = 0x4 | |
SMU_MSG_GetTableVersion = 0x5 | |
SMU_MSG_EnableOcMode = 0x5D |
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
class CSVFixer | |
attr_accessor :rows | |
def initialize(filename) | |
@rows = [] | |
input_csv = CSV.open(filename) | |
loop do | |
begin | |
row = input_csv.shift | |
break unless row |
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 'uri' | |
require 'base64' | |
require 'cgi' | |
require 'zlib' | |
require 'pp' | |
require 'cbor' | |
# https://github.com/svnee/base54 | |
module Base45 |
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 'set' | |
require 'json' | |
require 'tree' | |
require 'fileutils' | |
# convert C globals to structures using clang ast json dump | |
# algorithm description | |
# - get AST with clang | |
# - convert AST into ruby tree |
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
%code requires { | |
/* | |
* Copyright (C) 2002-2003 Lars Knoll ([email protected]) | |
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. | |
* Copyright (C) 2006 Alexey Proskuryakov ([email protected]) | |
* Copyright (C) 2008 Eric Seidel <[email protected]> | |
* Copyright (C) 2012 Intel Corporation. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or |
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
/* | |
* Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/ | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ | |
#include "am57xx-beagle-x15-common.dtsi" | |
#include "am57xx-cmem.dtsi" |
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 'pp' | |
require "unimidi" | |
require 'midilib/sequence' | |
# Prompts the user to select a midi output | |
# Sends some arpeggiated chords to the output | |
output = UniMIDI::Output.gets | |
begin | |
# Create a new, empty sequence. |
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 'pp' | |
require 'java' | |
require '/usr/share/java/javaparser.jar' | |
module Java2cpp | |
class JavaFile | |
attr_accessor :class_dependencies, :class_defined | |
include_package "japa.parser" | |
java_import "java.io.FileInputStream" |