A simple rake task that replicates the rails console
for Lotus Framework
I assume that your config/application.rb
is the place where you
initialize all Lotus boot config
below is my config/application.rb
for your interest
#!/bin/bash | |
# place this shell script to | |
# ./ | |
# ├── bin/ | |
# │ └── ibdesignable-workaround.sh | |
# └── YourGreatApp.xcodeproj | |
set -euo pipefail |
EDBEngineError-Network Initialization Failed | |
Permission Denied | |
File C:\PDOXUSERS.NET | |
Directory: c:\ | |
1. Create a new directory such as C:\BDEShare or use an existing folder (like My Documents). | |
2. Start the BDE Administration utility, located in: C:\Program Files (x86)\Common Files\Borland Shared\BDE\BDEADMIN.EXE | |
3. Click Configuration -> Drivers -> Native -> Paradox | |
4. Cick on the path next to NET DIR | |
5. Click the browse button to the right of the path |
func addTextToImage(text: NSString, inImage: UIImage, atPoint:CGPoint) -> UIImage{ | |
// Setup the font specific variables | |
let textColor = YOUR_COLOR | |
let textFont = YOUR_FONT | |
//Setups up the font attributes that will be later used to dictate how the text should be drawn | |
let textFontAttributes = [ | |
NSFontAttributeName: textFont, | |
NSForegroundColorAttributeName: textColor, |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>shortcut</key> | |
<string>:smile:</string> | |
<key>phrase</key> | |
<string>😄</string> | |
</dict> |
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
#! /usr/bin/env ruby | |
require "yaml" | |
require "pathname" | |
banner = <<BANNER | |
Looks for a config/database.yml file and supplies the command to get a | |
database dump/import. (mysql or postgres) | |
dumper <rails_env> |
000787466 @bramus | |
006904094 @inferis | |
008093150 @tomklaasen | |
010686174 @to1ne | |
011006380 @tijs | |
023055424 @crahan | |
063846821 @junkiesxl | |
075540649 @maxvoltar | |
084511154 @atog | |
102812969 @nilo |