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
<html> | |
<head> | |
<title>Google Maps Multiple Markers</title> | |
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="map" style="height: 400px; width: 500px;"> | |
</div> | |
<script type="text/javascript"> |
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 | |
comm -13 <(aws s3 ls s3://my-bucket | awk '{print $NF}' | sort) <(ls my_local_folder/ | awk '{print $NF}' | sort) |
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 | |
class MyClass { | |
const MY_CONSTANT = 0.0; | |
protected $myProperty; | |
protected $table = [ | |
"my_table" |
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
/* Function to fetch the region name from | |
the region ID in mapSVG WordPress plugin | |
Can be used for Global tooltips or popovers */ | |
function (event, region) { | |
return '<b>' + region.id.replace(/_/g," "); + '</b>'; | |
} |
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
Show hidden characters
// It's saved under path_to_Packages/User/ | |
{ | |
"env":{ | |
"PATH":"${HOME}/.rvm/bin:${PATH}" | |
}, | |
"cmd": ["rvm-auto-ruby","-S", "bundle", "exec", "rspec", "-I ${file_path}", "$file"], | |
"file_regex": "# ([A-Za-z:0-9_./ ]+rb):([0-9]+)", | |
"working_dir": "${project_path:${folder:${file_path}}}", | |
"selector": "source.ruby", |
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 ruby | |
# Git commit-msg hook. Prepend a reference to the issue number of the branch name to commit tasks. | |
# If your branch name is in the numeric form "issue_12345", also prepend "refs #12345" to commit messages, | |
# unless "refs #12345" is manually provided inline. | |
# | |
# Place code into .git/hooks/prepare-commit-msg and give it executable permissions | |
# cd .git/hooks | |
# wget https://gist.github.com/pjmartorell/6456a5ffa7f7ff9d3195 | |
# chmod 755 prepare-commit-msg |
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
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target | |
21at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) | |
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649) | |
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241) | |
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235) | |
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1206) | |
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136) | |
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593) | |
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529) | |
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893) |
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
$ make | |
[100%] Building CXX object CMakeFiles/foo.dir/foo.cpp.o | |
In file included from /Users/xxxxx/fantom/bin/foo/foo.cpp:1: | |
In file included from /Users/xxxxx/fantom/include/fantom/algorithm.hpp:10: | |
In file included from /usr/include/c++/v1/unordered_map:318: | |
In file included from /usr/include/c++/v1/__hash_table:19: | |
/usr/include/c++/v1/cmath:1333:9: error: no member named 'llrint' in the global namespace | |
using ::llrint; | |
~~^ | |
/usr/include/c++/v1/cmath:1334:9: error: no member named 'llrintf' in the global namespace |
NewerOlder