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
ea = BeginEA() | |
functions_with_assert = set() | |
function_renames = {} | |
for function_start in Functions(SegStart(ea), SegEnd(ea)): | |
function_name = GetFunctionName(function_start) | |
if not function_name.startswith('sub_'): | |
continue | |
function_end = FindFuncEnd(function_start) |
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
ea = BeginEA() | |
functions_with_assert = set() | |
for function_start in Functions(SegStart(ea), SegEnd(ea)): | |
function_name = GetFunctionName(function_start) | |
if not function_name.startswith('sub_'): | |
continue | |
function_end = FindFuncEnd(function_start) |
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
ea = BeginEA() | |
for function_start in Functions(SegStart(ea), SegEnd(ea)): | |
function_name = GetFunctionName(function_start) | |
if not function_name.startswith('sub_'): | |
continue | |
print function_name |
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 mopsled on github. | |
* I am alecg (https://keybase.io/alecg) on keybase. | |
* I have a public key whose fingerprint is 8FC2 54E7 0CD2 6054 1219 1141 E942 5868 8AB3 674F | |
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
// | |
// utilities.h | |
// | |
#include <stdio.h> | |
#ifndef MyProject_utilities_h | |
#define MyProject_utilities_h | |
FILE *iosfopen(const char *filename, const char *mode); |
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
require 'active_record' | |
class Color < ActiveRecord::Base | |
end |
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
module Jekyll | |
module Filters | |
def relative_date(date) | |
# Note: You can use ruby code outside of the module (see below) | |
relative_date_in_words(date) | |
end | |
end | |
end | |
# Adopted from a function found on stack overflow: |
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
module Jekyll | |
module Filters | |
def my_filter(input) | |
"Filtered input: '#{input.upcase}'" | |
end | |
end | |
end |
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
# Note: You can use any normal ruby library in your extenstion | |
require 'yaml' | |
module Jekyll | |
class YAMLToArray < Liquid::Tag | |
def initialize(tag_name, params, tokens) | |
super | |
@file, @variable = params.split(',', 2).map{ |x| x.strip } | |
end |
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
puts "example number one" |
NewerOlder