Mou, the missing Markdown editor for web developers.
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
TMP_PATH=~/tmp_install_python | |
# Versions section | |
PYTHON_MAJOR=2.7 | |
PYTHON_VERSION=$PYTHON_MAJOR.10 | |
mkdir $TMP_PATH && cd $TMP_PATH | |
# Update yum and libraries | |
yum -y update |
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
<snippet> | |
<content><![CDATA[ | |
public function ${1:relationship}() | |
{ | |
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table}); | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>belt</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
Required module:
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
+ # Updating the hosts file with all the sites that are defined in Homestead.yaml | |
+ if Vagrant.has_plugin?("vagrant-hostsupdater") && settings["hosts_file_additions"] == true | |
+ hosts = [] | |
+ settings["sites"].each do |site| | |
+ hosts.push(site["map"]) | |
+ end | |
+ config.hostsupdater.aliases = hosts | |
+ end |
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
require 'net/http' | |
require 'uri' | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: poc.rb [options]" | |
opts.on("-d", "--drupal_url=drupal_host", "Define the url for your drupalsite without. (www.domain.tld)") do |drupal_url| |
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
require 'net/http' | |
require 'uri' | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: poc.rb [options]" | |
opts.on("-d", "--drupal_url=drupal_host", "Define the url for your drupalsite without. (www.domain.tld)") do |drupal_url| |
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/gitify:23:in `load': /Library/Ruby/Gems/2.0.0/gems/projectify-0.5.0/bin/gitify:46: syntax error, unexpected keyword_else, expecting keyword_end (SyntaxError) | |
/Library/Ruby/Gems/2.0.0/gems/projectify-0.5.0/bin/gitify:53: syntax error, unexpected tIDENTIFIER, expecting keyword_end | |
command = options[:type] + " " options[:dir] | |
^ | |
/Library/Ruby/Gems/2.0.0/gems/projectify-0.5.0/bin/gitify:54: syntax error, unexpected keyword_elsif, expecting keyword_end | |
elsif options.has_key?("dir".to_sym) do | |
^ | |
/Library/Ruby/Gems/2.0.0/gems/projectify-0.5.0/bin/gitify:56: syntax error, unexpected keyword_else, expecting keyword_end | |
/Library/Ruby/Gems/2.0.0/gems/projectify-0.5.0/bin/gitify:70: syntax error, unexpected end-of-input, expecting keyword_end | |
from /usr/bin/gitify:23:in `<main>' |
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
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: gitify [options]" | |
opts.on("-n", "--namespace=NAMESPACE", "Define the namespace of the repository. if this is empty, no namespace will be used.") do |namespace| | |
options[:namespace] = namespace | |
end |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder