Skip to content

Instantly share code, notes, and snippets.

View j0lv3r4's full-sized avatar
🎯
Focusing

Juan Olvera j0lv3r4

🎯
Focusing
View GitHub Profile
# Default application configuration that all configurations inherit from.
scss_files: "scss/**/*.scss"
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
linters:
BangFormat:
@j0lv3r4
j0lv3r4 / SassMeister-input.scss
Created September 11, 2015 22:36
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
/*! Hyx v2.0.0 | MIT License | http://github.com/thinkxl/hyx.less */
// Global settings
$gutter: 4% !default; // - distance between columns
$grid-size: 12 !default; // - num of columns
$width: 100% !default; // - space that we want to use for the grid
@j0lv3r4
j0lv3r4 / SassMeister-input.scss
Created May 27, 2015 20:11
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
/*! Hyx v2.0.0 | MIT License | http://github.com/thinkxl/hyx.less */
// Global settings
$gutter: 4% !default; // - distance between columns
$grid-size: 12 !default; // - num of columns
$width: 100% !default; // - space that we want to use for the grid
@j0lv3r4
j0lv3r4 / markdown.css
Last active August 29, 2015 14:18 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@j0lv3r4
j0lv3r4 / SassMeister-input-HTML.html
Created March 23, 2015 18:37
Generated by SassMeister.com.
<div class="demo">
<p>Standard</p>
<button class="button">Button</button>
<a href="#" class="button">Anchor tag</a>
<input type="submit" class="button" value="Submit input">
<input type="button" class="button" value="Button input">
</div> <!-- .demo -->
<br>
<div class="demo">
<p>Primary</p>
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@j0lv3r4
j0lv3r4 / logging.py
Last active October 24, 2016 01:38
logging with python
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
handler = logging.FileHandler(config.log_path)
handler.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - '
'%(levelname)s - %(message)s')
@j0lv3r4
j0lv3r4 / truncate.py
Last active August 29, 2015 14:15
truncate text and add ellipsis '...'
# http://stackoverflow.com/questions/2872512/python-truncate-a-long-string
def short_text(data):
return (data[:10] + '..') if len(data) > 10 else data
print short_text('adaf adf adf adf asdf adff')
# >> adaf adf a..
@j0lv3r4
j0lv3r4 / validate_url.py
Created February 20, 2015 01:34
Validate url
def is_url(url):
parsed_url = urlparse.urlparse(url)
return bool(parsed_url.scheme)
@j0lv3r4
j0lv3r4 / watchfile.sh
Last active June 24, 2017 09:23 — forked from swarminglogic/watchfile.sh
watchfile - monitor file(s) and execute a command when files are changed, OSX version
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------