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
# Parameters | |
fn = '/Users/89dragon/Reference/Emulation/NES Roms/SuprMar3.nes' | |
#lookup_table = "B0=A B1=B B2=C B3=D B4=E B5=F B6=G B7=H B8=I B9=J BA=K BB=L BC=M BD=N BE=O BF=P C0=Q C1=R C2=S C3=T C4=U C5=V C6=W C7=X C8=Y C9=Z D0=a D1=b D2=c D3=d D4=e D5=f D6=g D7=h D8=i D9=j DA=k DB=l DC=m DD=n DE=o DF=p CA=q CB=r CC=s CD=t CE=u CF=v 81=w 88=x 8C=y 8F=z" | |
#fn = '/Users/89dragon/Reference/Emulation/NES Roms/SuprMar.nes' | |
#lookup_table = None | |
#fn = '/Users/89dragon/Reference/Emulation/NES Roms/ZELDA2.NES' | |
#lookup_table = None |
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
var examplefields = [].concat([ | |
nga.field('fields before address'), | |
], data.primitives.addressFields,[ | |
nga.field('fields after address'), | |
]); | |
entity.creationView().fields(examplefields).prepare(['Restangular', '$state', function(Restangular, $state){ | |
data.addressFieldHelper(Restangular, $state); | |
}]); |
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
// Shared functions and data | |
var data = window._myAppData; | |
if (!data){data = window._myAppData = {};} | |
data.address_form_states = { | |
840: { | |
'': "Select state", | |
'AL': "Alabama", | |
'AK': "Alaska", | |
'AZ': "Arizona", |
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
# [MODIFICATION] Overrides components of asset sync to provide upload progress bar and remote directory listing caching | |
module AssetSync | |
class Storage | |
def get_cache_file | |
"#{Rails.root}/tmp/asset-sync-remote-cache" | |
end | |
def get_remote_files_from_cache | |
if self.config.cache_directory_listings && File.exists?(get_cache_file) | |
puts "Loading remote directory listing from cache" | |
remote_files = YAML::load(File.open(get_cache_file).read) |