Piping stdin to vim
Took me way to long to look for this one:
hg annotate myFile.txt | gvim -
The key is the dash. That tells gvim to read from stdin.
Thanks to Nathan Fellman on StackOverflow.
Took me way to long to look for this one:
hg annotate myFile.txt | gvim -
The key is the dash. That tells gvim to read from stdin.
Thanks to Nathan Fellman on StackOverflow.
i’m messing around with less due to Twitter’s great Bootstrap library utilizing it.
Pro tip: Make sure you import the responsive less at the bottom of the bootstrap.less file, or at least after you’ve compiled the major includes.
i found that if i put it before my modals include, i would get modals that wouldn’t resize with different browser sizes. That wasn’t fun to find out a few days before i’m looking to have my work on display.
By the way, i would be lost on this project without some web design help. i never practiced it before, so having some documented standards to run to has been super helpful! Bootstrap has been an incredible time-saver for me in this regard.
Fun! i’m currently working on a pull request for Nancy. i just started playing with it 2 weeks ago :)
Wynn caught up with Phil Haack to talk about NuGet and growing the .NET open source community at GitHub.
This week’s episode is brought to you by:
Pusher is looking for system engineers who specialize in evented systems. Go to → pusher.com/jobs.
Hover makes domain names simple. Use promo code ‘thechangelog’ and save 10%.
Items mentioned in the show:
- Phil Haack, GitHubber, Microsoft alumnus, .NET open source guy.
- NuGet is a Visual Studio extension that makes it easy to install and update third-party libraries and tools in Visual Studio.
- log4net is often an open source trojan horse in the proprietary enterprise.
- NuGet features a command line interface and also integrates with SharpDevelop.
- Wynn asks what impact the names .NET and C# have had on SEO and adoption of Microsoft technology.
- C# is the #11 most popular language on GitHub.
- Tiobe places C# as #3 overall.
- Line endings in Git are everyone’s problem.
- GitHub may or may not be working on (GitHub for Windows®)™.
- Phil likes SignalR, an async signaling library for .NET to help build real-time, multi-user interactive web applications.
- Jabbr is a chat client showcase for SignalR.
- NancyFx is a lightweight, low-ceremony, framework for building HTTP based services on .NET and Mono.
- OWIN defines a standard interface between .NET web servers and web applications, much like Rack for Ruby.
- Sammy.js was also Rat Pack-inspired.
- Phil thinks LINQ and Reactive Extensions (Rx) are some innovations in .NET that should influence the broader community.
- The
awaitkeyword in C# 5 will accelerate async adoption in .NET.- Wynn <3’s Hubot and especially likes the Dude and Mustachify scripts.
- David Fowler, developer on the ASP.NET team and who works on NuGet and SignalR inspires Phil.
<p>Hello @Model.Name!<p>
Which results in:
Hello Hello Nancy world!!
(yes, i use .net at work. DONT JUDGE ME)
Took me a few minutes to figure out, but try this guy:
gvim $(ack “FindMeYo” -l)
Finding the $(…) thing was the key.
Update: Steve Losh’s improvement to this:
@jugglingnutcase better (handles spaces in filenames, etc): ack “foo” -l —print0 | xargs -0 gvim
— Steve Losh (@stevelosh) March 1, 2012
Took me a long time and it’s small, but i’ve got to start somewhere.
Found this guy in one of my applications:
Label_TimeFormatExample.Text = New Date(1984, 6, 4, 13, 20, 0).ToString(selectedFormat.FormatString)
Guess what day that is ;)
“gv” will give you the previous selection in the previous mode.
Or for my usual use, it will go back to your last selection. So useful!
That’s an oversimplification. So look up “:help gv” if you want the truth.