One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/ruby | |
# | |
# I recommend using Pocket to do the export. It works better than the browser extensions. | |
require 'rubygems' | |
require 'htmlentities' | |
require 'csv' | |
# CHANGE THIS | |
input_file = '/path/to/passwords.csv' |
- (CALayer*)layerFromResiableImage:(UIImage*)image { | |
CGSize size = [image size]; | |
UIEdgeInsets insets = [image capInsets]; | |
CALayer *layer = [CALayer layer]; | |
[layer setContents:(id)[image CGImage]]; | |
layer.contentsCenter = CGRectMake(insets.left / size.width, insets.top / size.height, | |
1.0/size.width, 1.0 / size.height); | |
return layer; | |
} |
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
secrets/ |
// | |
// FacebookAuth.swift | |
// GitHub: ethanhuang13 | |
// Twitter: @ethanhuang13 | |
import AuthenticationServices | |
import SafariServices | |
/* | |
Updated: |
For a project that sadly will not be made public (See PR) I had to rename some components.
This is of course a very specific solution targeted only to our project but maybe it can help/give a starting point for a similar problem.
Here is the documentation from the pull request:
Trying to rename components to use the snake case naming. (See PEP 8)
I am not happy with the result that the full fledged IDE pycharm brings. (I also just dislike those super heavy programs) Since some of the variable names are used in strings to access fields in the jsons I cannot simply rename every occurrence. Pycharm gives the option to exclude matches in strings etc, but I still would have to do it for every component.
lane :build_and_upload do | |
# Build by allowing provisioning updates, auto version and build number management, | |
# and uploading directly to App Store Connect | |
# | |
# Requires: signed in with Apple ID in Xcode | |
# Radar for using App Store Connect API Key: FB9145847 | |
gym( | |
xcargs: "-allowProvisioningUpdates", | |
export_options: { | |
"destination": "upload", |