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
CheckboxableArrayMixin = Ember.Mixin.create | |
allSelected: false | |
selectedItems: Ember.computed.filterBy("", "selected", true) | |
selectedItemsCount: Ember.computed.alias("selectedItems.length") | |
isEmpty: Ember.computed.not(@get("model")) |
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
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; | |
// Check to see if History.js is enabled for our Browser |
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
.setColumnWidths(@maxcolumns, @num_cols, @min_resolution){ | |
@media screen and(min-width: @min_resolution) { | |
.row { | |
.onecol { | |
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*1/@{maxcolumns})))`); | |
} | |
.twocol { | |
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*2/@{maxcolumns}))) `); | |
} | |
.threecol { |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>C# Unit Test Method</Title> | |
<Shortcut>testmethod</Shortcut> | |
<Description>Code snippet for creating an NUnit unit test in C#</Description> | |
<Author>Sean Goresht</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
flex() | |
-webkit-box-flex arguments[0] | |
-webkit-flex arguments | |
-moz-box-flex arguments[0] | |
-ms-flex arguments | |
flex arguments | |
$display-flex | |
display -webkit-box | |
display -webkit-flex |
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
@em: 1em; | |
@multiplierLarge: 2.3; | |
@multiplier: 2; | |
.headingsX(@index) when (@index > 0) { | |
(~"h@{index}") { | |
font-size: ((@em * @multiplierLarge) - ((@index * ((@em * @multiplierLarge) / 6 )))) + (@em * @multiplier); | |
} | |
.headingsX(@index - 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
.label, .badge { | |
font-size: 0.9em; | |
font-weight: bold; | |
line-height: 1.4; | |
color: #fff; | |
vertical-align: baseline; | |
white-space: nowrap; | |
text-shadow: 0 -1px 0 rgba(0,0,0,0.25); | |
background-color: #999; | |
} |
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
<input type = "search" placeholder = "Search..." required x-webkit-speech name="filter_search" results = "10" autosave = "unique-auto-save-name"/> |
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
/** | |
* CSS3 Windows 8 Window | |
*/ | |
.window { | |
padding: 0.2em; | |
border: 1px solid blue; | |
} | |
.window .app-icon, .window .program-status { | |
display: inline-block; |
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
SELECT p.species_id, p.height, p.weight, p.base_experience, p.is_default, ps.*, pev.* FROM pokemon p | |
INNER JOIN pokemon_species ps on ps.id=p.id | |
INNER JOIN pokemon_evolution pev on pev.id=p.id | |
INNER JOIN pokemon_stats pstat on pstat.pokemon_id=p.id |