Skip to content

Instantly share code, notes, and snippets.

View adaam2's full-sized avatar

Adam Bull adaam2

View GitHub Profile
@adaam2
adaam2 / jsbin.cizoy.css
Created June 27, 2014 10:21
Dynamically sized horizontal lists - expanding widths
div.wrap {
display:table;
width:100%;
}
ul {
list-style:none;
display:table-row;
}
li {
display:table-cell;
div.wrap {
display:table;
width:100%;
}
ul {
list-style:none;
display:table-row;
}
li {
display:table-cell;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</body>
</html>
* {
-webkit-box-sizing:border-box;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
.wholePageWrapper {
width:960px;
}
.notificationBanner {
background:#FDF7BD;
* {
-webkit-box-sizing:border-box;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
.wholePageWrapper {
width:960px;
}
.notificationBanner {
background:#FDF7BD;
#Junk Files
*.DS_Store
[Tt]humbs.db
#Visual Studio Files
[Oo]bj
[Bb]in
[Dd]ebug
[Bb]uild/
*.user

###Expose IIS or IISExpress running in a Parallels Windows 7/8 VM to your OS X host

####Rename your virtual machine In your Windows 7/8 VM, go to Control Panel > System > Advanced system settings > Computer Name and click Change. Name this whatever you like, e.g. windows. Restart your VM.

####Add an ACL rule Open CMD or Powershell as administrator. Add a URL ACL entry for your new name on the port of your choice, e.g.
netsh http add urlacl url=http://windows:8080/ user=everyone

####Add a firewall rule

@adaam2
adaam2 / tinder-api-documentation.md
Created December 6, 2015 21:57 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since

API Details

@adaam2
adaam2 / BundleConfig.cs
Created December 17, 2015 10:36
Basic setup of BundleTransformer with Minification of Scripts and Styles
using BundleTransformer.Core.Builders;
using BundleTransformer.Core.Orderers;
using BundleTransformer.Core.Resolvers;
using BundleTransformer.Core.Transformers;
using System.Web;
using System.Web.Optimization;
namespace uk.co.adamjamesbull
{
public class BundleConfig