// jQuery
$(document).ready(function() {
// code
})
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
/* | |
Element to slide gets the following CSS: | |
max-height: 0; | |
opacity: 0; | |
overflow: hidden; | |
transition: max-height 0.4s ease 0s; | |
*/ | |
/** | |
* Like jQuery's slideDown function - uses CSS3 transitions |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
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 bash | |
### | |
# | |
# install_mysql.sh | |
# | |
# This script assumes your Vagrantfile has been configured to map the root of | |
# your application to /vagrant and that your web root is the "public" folder | |
# (Laravel standard). Standard and error output is sent to | |
# /vagrant/vm_build.log during provisioning. |
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
<?php | |
/** | |
* Available Font Awesome icons | |
* | |
* Get all icons from a font-awesome.css file and list in json mode | |
* | |
* @author Alessandro Gubitosi <[email protected]> | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 | |
*/ |
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
// How to get the pickadate to mount correcty in React.js component | |
// requires jQuery and pickadate.js (https://github.com/amsul/pickadate.js/) | |
var Component = React.createClass({ | |
getInitialState: function() { | |
return ({value: null}); | |
}, | |
componentDidMount: function() { |
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
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
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
#!/bin/bash | |
#By: Lucas macedo | |
#Defina seu usuário e senha | |
usuarioesenha="-u root -proot" | |
#define o path do mysql, se estiver global deixe apenas "mysql" ou wamp/mamp ex: C:\wamp\bin\mysql\mysql5.6.12\bin\mysql | |
_mysql="/Applications/MAMP/Library/bin/mysql" | |
#busca todas databases | |
databases=(`$mysql -e "show databases" ${usuarioesenha}`) |
$ sudo add-apt-repository ppa:ondrej/php; sudo apt-get update
$ sudo apt-get install php7.1-cli -y
$ sudo apt-get install -y \
OlderNewer