Skip to content

Instantly share code, notes, and snippets.

Sean Goresht srsgores

Block or report user

Report or block srsgores

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@srsgores
srsgores / _power-select.pcss
Created Feb 17, 2019
Ember power select for postcss
View _power-select.pcss
:root {
/* Backgrounds --ember-power-select-background-color: #ffffff; */
--ember-power-select-disabled-background-color: #eeeeee;
--ember-power-select-multiple-selection-background-color: #e4e4e4;
--ember-power-select-highlighted-background: #5897fb;
--ember-power-select-selected-background: #dddddd;
--ember-power-select-text-color: inherit;
/* Texts --ember-power-select-text-color: inherit; */
--ember-power-select-placeholder-color: #999999;
@srsgores
srsgores / remove-facebook-ads.js
Created Apr 19, 2018
Remove facebook sponsored ads
View remove-facebook-ads.js
"use strict";
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
const observer = new MutationObserver(function(mutations, observer) {
const sponsoredRegex = /[S][sponred]*/;
mutations.filter((mutation) => mutation.target.textContent.split(sponsoredRegex).filter((match) => match === "").length >= 4).map((ad) => ad.target.remove());
});
@srsgores
srsgores / all_pokemon.sql
Last active Nov 11, 2017
Query pokemon data
View all_pokemon.sql
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
@srsgores
srsgores / dabblet.css
Created Apr 29, 2013 — forked from anonymous/dabblet.css
CSS3 Windows 8 Window
View dabblet.css
/**
* CSS3 Windows 8 Window
*/
.window {
padding: 0.2em;
border: 1px solid blue;
}
.window .app-icon, .window .program-status {
display: inline-block;
@srsgores
srsgores / search-input.html
Created Oct 22, 2013
Html5 search input with voice control, results dropdown, and autosave.
View search-input.html
<input type = "search" placeholder = "Search..." required x-webkit-speech name="filter_search" results = "10" autosave = "unique-auto-save-name"/>
@srsgores
srsgores / gist:5305036
Created Apr 3, 2013
New Module Pseudo-selector Styles
View gist:5305036
.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;
}
@srsgores
srsgores / less_headers.less
Last active Dec 11, 2015
less recursive headers
View less_headers.less
@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);
}
View flexbox-helpers.styl
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
View sengtest.snippet
<?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>
@srsgores
srsgores / folding.mixin.less
Created Aug 26, 2012
Dynamic Fold LESS Generation
View folding.mixin.less
.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 {
You can’t perform that action at this time.