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; } | |
| } |
##Good guide to getting through aspnet Web Applications errors http://andreizubov.blogspot.co.uk/2015/04/getting-started-with-net-on-os-x-and.html
Error: IOException: kqueue() FileSystemWatcher
##Fixing the feed issues aspnet/dnvm#235 (comment)
map:
function (doc) {
if (doc.type == 'game' && doc.state == 'closed') {
emit(['winner', doc.winner, doc.loser], 1);
}
}reduce:
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 |