adb shell 'echo \"chrome --user-agent="[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.23 Safari/537.36]"\" > /data/local/chrome-command-line'
- Fig - Fast, isolated development environments using Docker
- Packer - Tool for creating identical machine images
- decking - Create, manage and run clusters of Docker containers
- Ansible
- Kubernetes - Container Cluster Manager
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
@mixin background-color-rgba($red, $green, $blue, $alpha) { | |
$rgba: rgba($red, $green, $blue, $alpha); | |
background-color: transparent; | |
background-color: rgba($red, $green, $blue, $alpha); | |
.lt-ie9 & { | |
$ie-hex-color: ie-hex-str($rgba); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{ie-hex-color}, endColorstr=#{ie-hex-color}); /* IE */ | |
zoom: 1; | |
} |
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
// http://nicolasgallagher.com/micro-clearfix-hack/ | |
// http://css-tricks.com/snippets/css/clear-fix/ | |
@mixin clearfix { | |
// For modern browsers | |
&:before, &:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; |
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
using System; | |
using System.Collections.Generic; | |
using System.Xml; | |
using System.Xml.Schema; | |
using System.Xml.Serialization; | |
[XmlRoot("dictionary")] | |
public class XmlSerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IXmlSerializable | |
{ | |
public XmlSchema GetSchema() |
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
public class MvcApplication : HttpApplication | |
{ | |
protected void Application_Start() | |
{ | |
AreaRegistration.RegisterAllAreas(); | |
RegisterRoutes(RouteTable.Routes); | |
SetupIoc(); | |
} | |
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
$("#someForm").validate({ | |
errorClass:'error', | |
validClass:'success', | |
errorElement:'div', | |
highlight: function (element, errorClass, validClass) { | |
$(element).parents("div[class='control-group']") | |
.addClass(errorClass) | |
.removeClass(validClass); | |
}, | |
unhighlight: function (element, errorClass, validClass) { |
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
python -m smtpd -n -c DebuggingServer localhost:1025 |
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
public string Foo(object overrides = null) | |
{ | |
if (overrides != null) | |
{ | |
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(overrides)) | |
{ | |
var name = property.Name; | |
var value = property.GetValue(overrides); | |
... | |
} |