As configured in my dotfiles.
start new:
tmux
start new with session name:
| // It is important to declare your variables. | |
| (function() { | |
| var foo = 'Hello, world!'; | |
| print(foo); //=> Hello, world! | |
| })(); | |
| // Because if you don't, the become global variables. | |
| (function() { |
| $j.validator.addMethod("remote_data", function(value, element, params) { | |
| var my_message = "some message"; | |
| $j.ajax({ | |
| ... | |
| }); | |
| if (correct){ | |
| return true; | |
| } else { | |
| $j.validator.messages.remote_data = my_message; | |
| return false; |
| # Print all project items | |
| Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
| # Function to format all documents based on https://gist.github.com/984353 | |
| function Format-Document { | |
| param( | |
| [parameter(ValueFromPipelineByPropertyName = $true)] | |
| [string[]]$ProjectName | |
| ) | |
| Process { |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = pavan.sss1991@gmail.com | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |
| namespace.views.MyWizard = Backbone.Views.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'render', 'wizardMethod'); | |
| } | |
| render: function() { | |
| this.wizardMethod(); | |
| return this; | |
| }, |
| # | |
| # http://technet.microsoft.com/en-us/library/cc722041%28v=WS.10%29.aspx | |
| # | |
| # Feature names are case-sensitive, and you will get no warnings if you mispell a feature or | |
| # do not include prerequisite features first. Proceed with care. | |
| # | |
| function InstallFeature($name) { | |
| cmd /c "ocsetup $name /passive" |
| Rabbitmq conf locations for homebrew | |
| /usr/local/etc/rabbitmq/rabbitmq-env.conf | |
| /usr/local/etc/rabbitmq/rabbitmq |
| <!-- This task takes in a XDT transform file and transforms it, following any inheritance chain. | |
| There should be at least one base transform for this to work; otherwise just use Microsoft's | |
| regular TransformXml task. --> | |
| <!-- EXAMPLE USAGE: | |
| <TransformXmlHierarchy | |
| Source="source.xml" | |
| Destination="transformed.xml" | |
| TaskDirectory="path/to/directory/of/Microsoft.Web.Publishing.Tasks" /> | |
| --> | |
| <UsingTask |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| <?xml version="1.0" encoding="utf-8" ?> | |
| <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <targets> | |
| <target name="coloredConsole" xsi:type="ColoredConsole" useDefaultRowHighlightingRules="false" | |
| layout="${longdate}|${pad:padding=5:inner=${level:uppercase=true}}|${message}" > | |
| <highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" /> | |
| <highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" /> | |
| <highlight-row condition="level == LogLevel.Warn" foregroundColor="Yellow" /> |