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
const { AndroidConfig, withAppDelegate, withPlugins, withInfoPlist, withSettingsGradle, withAppBuildGradle, withMainApplication, withStringsXml } = require('@expo/config-plugins'); | |
function withCodePushAppDelegate(config) { | |
return withAppDelegate(config, (cfg) => { | |
const { modResults } = cfg; | |
const { contents } = modResults; | |
const lines = contents.split('\n'); | |
const importIndex = lines.findIndex((line) => | |
/^#import "AppDelegate.h"/.test(line) |
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
# Name: EXIFmover.py | |
# Author: Brian Klug (@nerdtalker / [email protected]) | |
# Purpose: | |
# Move Files into directory based on EXIF data make and model | |
# Designed to un-clusterfuck the Dropbox camera upload directory which is a mess of every | |
# JPEG and PNG ever if you use it like I do on a bunch of phones, and thus totally unwieldy | |
# and full of images sorted by date or else nothing sometimes, dropbox seems nondeterminstic | |
# Moves files into /[Image Make]+[Image Model]/ eg /Camera Uploads/LGE Nexus 4/ |
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
module CacheableHasOne | |
extend ActiveSupport::Concern | |
included do | |
@build_cached_getter = ::Kernel.lambda do |cache_key, association_symbol| | |
alias_method "_#{association_symbol}".to_sym, association_symbol | |
define_method(association_symbol) do | |
return send("_#{association_symbol}") unless persisted? |
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
(function() { | |
if (!jasmine) { | |
throw new Exception("jasmine library does not exist in global namespace!"); | |
} | |
function elapsed(startTime, endTime) { | |
return (endTime - startTime) / 1000; | |
} |
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
/*! | |
Jasmine-jQuery: a set of jQuery helpers for Jasmine tests. | |
Version 2.0.5 | |
https://github.com/velesin/jasmine-jquery | |
Copyright (c) 2010-2014 Wojciech Zawistowski, Travis Jeffery | |
Permission is hereby granted, free of charge, to any person obtaining |
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
/* jasmine-fixture - 1.2.0 | |
* Makes injecting HTML snippets into the DOM easy & clean! | |
* https://github.com/searls/jasmine-fixture | |
*/ | |
(function() { | |
var createHTMLBlock, | |
__slice = [].slice; | |
require(['jquery'], function($) { | |
var ewwSideEffects, jasmineFixture, originalAffix, originalJasmineDotFixture, originalJasmineFixture, root, _, _ref; |