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
console.log('Hola, mundo!'); |
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
<!-- START OF DOOFINDER SCRIPT --> | |
<script type="text/javascript"> | |
var doofinder_script = '//cdn.doofinder.com/media/js/doofinder-4.latest.min.js'; | |
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1; | |
f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script; | |
s.parentNode.insertBefore(f,s)}(document,'script') | |
); | |
if(!doofinder){var doofinder={};} | |
// More options: http://www.doofinder.com/developer/doofinder-layer | |
doofinder.options = { |
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
{ | |
"// my options for SublimeLinter " : "//", | |
"jshint_options" : { | |
"boss": true, | |
"browser": true, | |
"curly": false, | |
"devel": true, | |
"eqeqeq": false, | |
"eqnull": true, | |
"expr": true, |
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
import time | |
from datetime import datetime | |
def str_to_datetime(str_date, str_format="%Y-%m-%d %H:%M"): | |
""" Creates a datetime from a string in a given format. """ | |
dt = time.strptime(str_date, str_format) | |
dt = time.mktime(dt) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
from os import path | |
from optparse import OptionParser | |
from xlrd import open_workbook | |
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
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql |
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
/** | |
* A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
* | |
* Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
* the blur parameter has to be doubled. | |
* | |
* Adapted from a LESS version at https://medium.com/@Florian/freebie-google-material-design-shadow-helper-2a0501295a2d | |
* | |
* Original Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) |
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
<div> | |
<button type="button" class="my-df-addtocart-btn" data-addtocart="{{id}}"> | |
{{#translate}}Add To Cart{{/translate}} | |
</button> | |
</div> |
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
GPG_TTY=$(tty) | |
export GPG_TTY |
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
$ sudo apt-get autoclean | |
$ sudo apt-get clean | |
$ sudo apt-get autoremove | |
# if you installed the debian-goodies package... | |
$ dpigs -H -n 25 | |
# You can install ncdu to find large files in a graphical interface through terminal | |
$ ncdu |
OlderNewer