| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
| In this guide i will teach you how to run 8BitDo Ultimate software v2 under Linux | |
| Some people tried running it under clear wine and failed, i found out the issue, you need ttf-ms-win10 package | |
| https://github.com/streetsamurai00mi/ttf-ms-win10 All you have to do is follow installation guide on this repo | |
| After you successfully launched your software, you have to map udev rules |
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
| public class MyEmberJsonMediaTypeFormatter : JsonMediaTypeFormatter | |
| { | |
| private int _maxDepth = 256; | |
| private JsonSerializerSettings _jsonSerializerSettings; | |
| public MyEmberJsonMediaTypeFormatter() | |
| { | |
| _jsonSerializerSettings = CreateDefaultSerializerSettings(); | |
| } | |
| public override System.Threading.Tasks.Task WriteToStreamAsync(System.Type type, object value, System.IO.Stream writeStream, System.Net.Http.HttpContent content, System.Net.TransportContext transportContext) | |
| { |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
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
| when :restrict | |
| method_name = "has_many_dependent_restrict_for_#{reflection.name}".to_sym | |
| define_method(method_name) do | |
| unless send(reflection.name).empty? | |
| # change to named error... | |
| raise ActiveRecord::StatementInvalid, "can't delete record because of dependent #{reflection.name}" | |
| end | |
| end | |
| before_destroy method_name |