Corsair Hydro Series High Performance Liquid CPU Cooler H60Corsair RMx Series, RM650x, 650W, Fully Modular Power Supply, 80+ Gold CertifiedGigabyte LGA1151 Intel Z170 ATX DDR4 Motherboards GA-Z170X-UD3Intel Core i7 6700K 4.00 GHz Unlocked Quad Core Skylake Desktop Processor, Socket LGA 1151 [BX80662I76700K]GIGABYTE GeForce GTX 980Ti 6GB G1 GAMING OC EDITION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-family: SauceCodePro Nerd Font!important; | |
/*-webkit-font-smoothing : none!important;*/ | |
} | |
.c9-menu-btn, .c9menu > .menu_item { | |
font-size: 15px; | |
padding-top: 6px; | |
-webkit-font-smoothing : none; | |
-webkit-font-smoothing : none!important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ever needed to escape '\n' as '\\n'? This function does that for any character, | |
// using hex and/or Unicode escape sequences (whichever are shortest). | |
// Demo: http://mothereff.in/js-escapes | |
function unicodeEscape(str) { | |
return str.replace(/[\s\S]/g, function(character) { | |
var escape = character.charCodeAt().toString(16), | |
longhand = escape.length > 2; | |
return '\\' + (longhand ? 'u' : 'x') + ('0000' + escape).slice(longhand ? -4 : -2); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash Progress Bar: https://gist.github.com/F1LT3R/fa7f102b08a514f2c535 | |
progressBarWidth=20 | |
# Function to draw progress bar | |
progressBar () { | |
# Calculate number of fill/empty slots in the bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified from origin: https://raw.githubusercontent.com/Homebrew/homebrew/6063022e63b22b84547c64e4ab2d477f1459f9ee/Library/Formula/postgis.rb | |
class Postgis < Formula | |
desc "Adds support for geographic objects to PostgreSQL" | |
homepage "http://postgis.net" | |
url "http://download.osgeo.org/postgis/source/postgis-2.2.1.tar.gz" | |
sha256 "0fe500b0250203aac656bfa8f42f8458b63f33258404844e066e0e535988fa09" | |
bottle do | |
cellar :any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trying to get the controller's $scope | |
browser.executeScript(function () { | |
return angular.element(document.getElementById('app')).scope(); | |
}).then(function($scope){ | |
console.log($scope); | |
}); | |
// Returns null for me even though my controller is running in #app element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults -currentHost write -globalDomain AppleFontSmoothing -int 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ## $.withAdvice | |
// | |
// Borrowed by [Flight](https://github.com/flightjs/flight). | |
// | |
// `withAdvice` is a mixin that defines `before`, `after` and `around` methods. | |
// | |
// These can be used to modify existing functions by adding custom code. All | |
// components have advice mixed in to their prototype so that mixins can augment | |
// existing functions without requiring knowledge of the original | |
// implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In the app | |
app.factory('MyService', [function () { | |
return { | |
mydata: "Hello world!", | |
myfunc: function(a, b) { | |
return a+b; | |
} | |
} | |
}]); |