Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| In response to all the responses to: | |
| http://twitter.com/rtomayko/status/1155906157 | |
| You should never do this in a source file included with your library, | |
| app, or tests: | |
| require 'rubygems' | |
| The system I use to manage my $LOAD_PATH is not your library/app/tests |
| [AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)] | |
| public class ಠ_ಠAttribute : Attribute | |
| { | |
| public ILog Log { get; set; } | |
| public ಠ_ಠAttribute() | |
| { | |
| Log.Info("This code is bad and you should feel bad"); | |
| } | |
| } |
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
| using System; | |
| using System.Web; | |
| namespace MyOtherSite | |
| { | |
| public class CorsModule : IHttpModule | |
| { | |
| public void Init(HttpApplication application) | |
| { | |
| application.BeginRequest += ApplicationOnBeginRequest; |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
| # Works for me. You may need to tweak it. Stick it in your powershell profile FTW | |
| function Rename-Project | |
| { | |
| # designed to run from the solution directory where the project is a child directory | |
| param( | |
| [string]$projectName=$(throw "projectName required."), | |
| [string]$newProjectName=$(throw "newProjectName required.") | |
| ) | |
| public class WebApi : IScriptPackContext { | |
| public WebApi(ILog logger, IControllerTypeManager typeManager) { | |
| ... | |
| } | |
| } | |
| public class WebApiScriptPack : IScriptPack | |
| { | |
| private readonly ILog _logger; | |
| private readonly IControllerTypeManager _typeManager; |
| desc "Checks .csproj files for StyleCop.MSBuild target" | |
| task :verify_stylecop_msbuild do | |
| projectFiles = FileList["./**/*.csproj"] | |
| projectFiles.each{|f| | |
| doc = Nokogiri::XML(File.open(f)) | |
| target = doc.css('PropertyGroup > StyleCopMSBuildTargetsFile') | |
| if (target.empty?) | |
| puts "#{f} has no stylecop.msbuild" | |
| else | |
| puts "#{f} is ok" |