Skip to content

Instantly share code, notes, and snippets.

View dbani-dev's full-sized avatar
🔨
Working...

David Bani dbani-dev

🔨
Working...
  • Shell Energy
  • Perth, Western Australia
View GitHub Profile
// Stick all your icons in a subfolder in your images folder. Mark retina versions with the same filename and "@2x".
$sprites: sprite-map("NAME_OF_SUBFOLDER/*.png");
// stolen from 37signals
@mixin retina-media() {
@media (min--moz-device-pixel-ratio: 1.3),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {
@content;
// Center Block
.c-block {
height: 100%;
width: 100%;
display: table;
margin: 0 auto;
&.width-auto {
width: auto;
}
1: 195, 60, 46
2: 103, 61, 255
3: 244, 226, 58
4: 52, 218, 184
5: 228, 111, 54
6: 255, 61, 126
7: 118, 255, 61
8: 61, 179, 255
9: 168, 61, 255
10: 199, 235, 56

###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

function mapWith (fn) {
return function (array) {
return _.map(array, fn)
}
}
var squareAll = mapWith(function (n) { return n * n });
squareAll([1, 2, 3]
var getReams = this.calculateReams();
for (var targetColumn = 0; targetColumn <= this.options.columnCount; targetColumn++) {
for (var i = 0; i < getReams[targetColumn - 1]; i++) {
this.$element.find(".column-" + targetColumn).append("<span class=" + this._classed.ream + ">");
}
}
@mixin module($name) {
.#{$name} {
@at-root {
@content;
}
}
}
@include module("nav") {
.event-result {
@include frame-style;
&__group {
display: table;
width: 100%;
}
&__stats {
text-align: center;
font-style: normal;
font-weight: 700;
id-1: eventHeading
id-2: eventListing
<events>
<id-1>Heading</>
<id-2>List</>
</events>
events {
.eventHeading {
d3.svg.axis()
.scale(
axisScale
.range(axisRange)
.domain(axisDomain)
)
.orient(axisOrient);