Skip to content

Instantly share code, notes, and snippets.

View veiko's full-sized avatar

Veronica Carrillo-Marquez veiko

View GitHub Profile
@veiko
veiko / .stylelintrc
Last active July 1, 2019 14:48
Default .stylelintrc file for new projects
{
"rules": {
"at-rule-empty-line-before": [ "always", {
"except": ["blockless-after-same-name-blockless", "first-nested"]
} ],
"at-rule-name-case": "lower",
"at-rule-name-newline-after": "always-multi-line",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-space-before": "never",
"block-no-empty": true,
@veiko
veiko / sass-space.scss
Last active February 8, 2021 14:52 — forked from Eomerx/sass-space.scss
SASS Space - Responsive CSS Positioning Classes built with SASS
// change to false if its not imported into bootstrap
$use-bootstrap: true;
// margin and padding values array
$space-values : (
5,
10,
15,
20,
30,
# Find downloads at: https://helpx.adobe.com/air/kb/archived-air-sdk-version.html
class AdobeAirSdk < Formula
homepage "https://www.adobe.com/devnet/air/air-sdk-download.html"
url "http://airdownload.adobe.com/air/mac/download/19.0/AIRSDK_Compiler.tbz2"
version "19.0.0.190"
sha256 "a724d7cae0f9602551e714a9e7ac77217e027de0bb957c9dad4f5596ea5d2c8c"
# conflicts_with "adobe-air-sdk-flex"
def install
@veiko
veiko / adjustLightness.coffee
Created March 23, 2013 17:53
A function to adjust the lightness of a color in Javascript. Based on a solution from http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color
adjustLightness = (color,percent) ->
num = parseInt(color.slice(1),16)
amt = Math.round(2.55 * percent)
R = (num >> 16) + amt
B = (num >> 8 & 0x00FF) + amt
G = (num & 0x0000FF) + amt
"#" + (0x1000000 +
(if R<255 then (if R<1 then 0 else R) else 255)*0x10000 +
(if B<255 then (if B<1 then 0 else B) else 255)*0x100 +
(if G<255 then (if G<1 then 0 else G) else 255)
@veiko
veiko / environment.rb
Created March 6, 2013 03:17
Using Chrome with RSpec, Capybara and Selenium
# config/environment.rb
# Set Selenium to use Chrome browser
# Make sure to have chromedriver: brew install chromedriver
Capybara.register_driver :selenium_chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Capybara.javascript_driver = :selenium_chrome