This is a bookmarklet that shows the Trello Card Numbers
- With an additional margin-right, to add some space
- Create a bookmark
- Name it something like "Trello Card Numbers"
- Add / Update the URL to the JavaScript below
//submit one, look at the network tab for the post-check-sum | |
//paste into console | |
var postCheckSum = "5f5a7b128a"; | |
$(".battlepack-item .btn").each(function() { | |
var id = $(this).attr("data-open-pack"); | |
$.post("https://battlelog.battlefield.com/bf4/battlepacks/openpack/"+id, {"packId":id, "post-check-sum":postCheckSum}); | |
}); |
// Address: Before | |
public class Address { | |
public Guid Id { get; set; } | |
public string Line1 { get; set; } | |
public string Line2 { get; set; } | |
public string Line3 { get; set; } | |
public string City { get; set; } | |
public string Postcode { get;set; } | |
public int CountryId { get; set; } | |
} |
var sqlParams = []; | |
var forenameParam = { | |
name: '@forename' | |
, type: 'int' | |
, value: 'Bob' | |
} | |
sqlParams.push(forenameParam); |
Location of Sublime Text 2 Packages on Windows
C:\Users\{username}\AppData\Roaming\Sublime Text 2\Packages
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool
user=`whoami` | |
# if installing node directly | |
sudo chown -R $user /usr/local/bin | |
sudo chown -R $user /usr/local/lib/node_modules | |
# if using nvm | |
sudo chown -R $user ~/.npm |
// Guide http://msdn.microsoft.com/en-us/library/debx8sh9.aspx | |
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
namespace Examples.System.Net | |
{ | |
public class WebRequestPostExample |