Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
| <%= form_for @person do |f| %> | |
| <%= f.label :first_name, "First Name" %>: | |
| <%= f.text_field :first_name, list: 'first-name' %> | |
| <datalist id="first-name"> | |
| <% Person.all.each do |person| %> | |
| <option value="<%= person.first_name %>"></option> | |
| <% end %> | |
| </datalist> | |
| <%= f.submit %> | |
| <% end %> |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| <form id="contact-form" action="//formspree.io/[email protected]" method="post"> | |
| <input type="text" name="Name" placeholder="Name" required> | |
| <input type="email" name="Email" placeholder="Email" required> | |
| <textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea> | |
| <!-- CONFIG --> | |
| <input class="is-hidden" type="text" name="_gotcha"> | |
| <input type="hidden" name="_subject" value="Subject"> | |
| <input type="hidden" name="_cc" value="[email protected]"> | |
| <!-- /CONFIG --> | |
| <input class="submit" type="submit" value="Send"> |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
| def render | |
| pdf = Prawn::Document | |
| pdf.image StringIO.new(Base64.decode64(splitBase64(BASE64_IMAGE_GOES_HERE)[:data])), at: [10, cursor - 50], width: 200, height: 125 | |
| end | |
| def splitBase64(uri) | |
| if uri.match(%r{^data:(.*?);(.*?),(.*)$}) | |
| return { | |
| type: $1, # "image/png" | |
| encoder: $2, # "base64" |
| # For more elaborate use cases, see the IndirectUsesTracker instead: | |
| # https://gist.github.com/christhekeele/fc4e058ee7d117016b9b041b83c6546a | |
| ### | |
| # A way to know, at runtime, what modules a module has used at compile time. | |
| # In this case, you include `UsesTracker` into a module. When that module gets | |
| # used in some other module, it registers itself with the other module. | |
| ## | |
| defmodule UsesTracker do | |
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "[email protected]" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
| gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=output.pdf -dDownsampleColorImages=true -dDownsampleGrayImages=true -dDownsampleMonoImages=true -dColorImageResolution=256 -dGrayImageResolution=256 -dMonoImageResolution=256 codpaste-teachingpack.pdf |
Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.
Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.
$ git remote add staging https://git.heroku.com/staging-app.git
| #include <Windows.h> | |
| #include "../../API/RainmeterAPI.h" | |
| struct ACCENTPOLICY { | |
| int nAccentState; | |
| int nFlags; | |
| int nColor; | |
| int nAnimationId; | |
| }; | |
| struct WINCOMPATTRDATA { |