Skip to content

Instantly share code, notes, and snippets.

View rgladwell's full-sized avatar

Ricardo Gladwell rgladwell

View GitHub Profile
@rgladwell
rgladwell / me.gladwell.eclipse.m2e.android.test.log
Created August 9, 2011 16:27
JUnit Plug-in Test failing for m2e-android
!SESSION 2011-08-09 15:43:52.365 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB
Framework arguments: -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -testpluginname me.gladwell.eclipse.m2e.android.test
Command-line arguments: -os linux -ws gtk -arch x86 -consoleLog -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -data /home/ricardo/Projects/../junit-workspace -dev file:/home
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active June 9, 2024 23:19
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@Vp3n
Vp3n / gist:5340891
Created April 8, 2013 21:55
Allowing CORS (Cross-Origin Resource Sharing) requests from grunt server
//Allowing CORS (Cross-Origin Resource Sharing) requests from
// grunt server, put this into Gruntfile.js
grunt.initConfig({
connect: {
livereload: {
options: {
port: 9000,
hostname: 'localhost',
middleware: function (connect) {
return [
@natritmeyer
natritmeyer / trex.rb
Last active December 19, 2015 21:28
Why dynamic languages are awesome
class Thing
def method_missing(method, *args, &block)
puts method.to_s.gsub /_/, " "
end
end
Thing.new.send <<-T_REX
_____________.-=-==--==--.
_______..-=="__,'o`)______`.
_____,'_________`"'_________\\