This file contains hidden or 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
{ | |
"indentRainbow.indicatorStyle": "light", | |
"indentRainbow.lightIndicatorStyleLineWidth": 1, | |
"indentRainbow.colors": [ | |
"rgba(255,255,64,0.15)", | |
"rgba(127,255,127,0.15)", | |
"rgba(255,127,255,0.15)", | |
"rgba(79,236,236,0.15)" | |
], | |
"todo-tree.highlights.enabled": true, |
This file contains hidden or 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
const https = require('https'); | |
const SLACK_TOKEN = ''; | |
const PASSCODE = ''; | |
const CHANNEL_REGEX = /\s(\#.*)$/; | |
const JIRA_REGEX = /^(JIRA-[^\s]+)\s/; | |
const DEFAULT_CHANNEL = ''; | |
const TEAM_ID = ''; | |
// FILE NAME: JIRA-1234 UI KIT #channel |
This file contains hidden or 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
const createNode = html => new DOMParser().parseFromString(html, "text/html").body.firstChild | |
const example = createNode(` | |
<section> | |
<h1>Hello World</h1> | |
</section> | |
`) |
This file contains hidden or 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
{ | |
"ignoreFiles": ["app/styles/vendor/**"], | |
"rules": { | |
"at-rule-empty-line-before": ["always", { | |
"except": ["blockless-group", "first-nested"], | |
"ignore": ["after-comment"] | |
}], | |
"block-closing-brace-newline-after": "always", | |
"block-closing-brace-newline-before": "always-multi-line", | |
"block-closing-brace-space-before": "always-single-line", |
This file contains hidden or 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
"use strict"; | |
const Xray = require('x-ray'); | |
const x = Xray(); | |
const fs = require('fs'); | |
const tripavisorUrl = 'http://www.tripadvisor.com/Restaurant_Review-g187514-d4760195-Reviews-La_Huerta_de_Tudela-Madrid.html'; | |
x(tripavisorUrl, { | |
id: '.mapContainer@data-locid', |
This file contains hidden or 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
module Jekyll | |
module Widow | |
def widow(text) | |
text.gsub!(/ ([^ ]*)$/, ' \1') | |
end | |
end | |
end |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
.badge { | |
$c: &; | |
&--primary { |
This file contains hidden or 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
var gulp = require('gulp'); | |
var Metalsmith = require('metalsmith'); | |
/* Gulp libs */ | |
var sketch = require("gulp-sketch"); | |
var clean = require('gulp-clean'); | |
var svgmin = require('gulp-svgmin'); | |
/* Custom libs */ | |
var src = require('./lib/src'); |
This file contains hidden or 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
import json, requests | |
# 0. https://gist.github.com/leah/5655437 (The base) | |
# 1. easy_install requests (install dependency) | |
# 2. python nikeplus.py | |
# 3. Enjoy! | |
TOKEN = "YOUR TOKEN" # http://developer.nike.com | |
PATH2SAVE = "/" |
This file contains hidden or 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
import sublime, sublime_plugin, re, os.path | |
class ClassCompletions(sublime_plugin.EventListener): | |
def get_completions(self): | |
completions = [] | |
# loop views | |
for v in sublime.active_window().views(): | |
# only css/scss files | |
if v.match_selector(0, "source.css, source.scss"): |
NewerOlder