I hereby claim:
- I am nathanq on github.
- I am nathanq (https://keybase.io/nathanq) on keybase.
- I have a public key ASCIwT8dOn14I-tDrGFuVHG6UDLIeHpqzWJkdUdfxTAuVAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// scroll to heading of open collapse item so content is presented on the screen | |
$(function() { | |
$('.panel-collapse').on('shown.bs.collapse', function (e) { | |
var $panel = $(this).closest('.panel'); | |
$('html,body').animate({ | |
scrollTop: $panel.offset().top | |
}, 250); | |
}); | |
}); |
{"lastUpload":"2017-07-11T18:03:41.418Z","extensionVersion":"v2.8.2"} |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
$(function() { | |
$('.downzy-btn').click(function() { | |
var mp3 = { | |
prefix: "data:audio/mp3;base64,", | |
sound: [ | |
"SUQzAwAAAAALClRJVDIAAABkAAAAAAAAAGQgRWZmZWN0cyAtIENvbWVkeS9DYXJ0b29uIEZBUlQgV0lUSCBHT09EIEVORElORzogU3RhcnRzIGJpZyBhbmQgbG91ZCwgZW5kcyB3aXRoIGEgYmFzaWMgJ3BycnQnVFBFMQAAADQAAABEb3dubG9hZCBTb3VuZCBFZmZlY3RzIC0gU291bmREb2dzIC0gQmpvcm4gTHlubmUgRlhUQUxCAAAAGQAAAGh0dHA6Ly93d3cuU291bmRkb2dzLmNvbVRSQ0sAAAACAAAAMFRZRVIAAAAFAAAAMjAwN1RDT04AAAAcAAAAU0ZYIC0gQ2FydG9vbnM7IEh1bWFucyBGYXJ0Q09NTQAAAC8AAABlbmcAUm95YWx0eSBGcmVlIFNvdW5kIEVmZmVjdHMgLSBTb3VuZGRvZ3MuY29tVENPTQAAAAEAAABXWFhYAAAAGgAAAABodHRwOi8vd3d3LlNvdW5kZG9ncy5jb21URU5DAAAAAQAAAFRDT1AAAAAsAAAAKGMpIDIwMTAgU291bmRkb2dzLmNvbSwgQWxsIFJpZ2h0cyBSZXNlcnZlZFRPUEUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
YUI().use('node', 'event', function (Y) { // use squarespace's preloaded YUI instead of loading jQuery just to make a popup. add this to the footer of your page in a snippet. | |
var videoLink = ''; // link your links to their videos in the content. | |
var top = pageYOffset; | |
var body = Y.one('body'); | |
var obj; | |
var doClose = function(e) { | |
e.preventDefault(); | |
var videoContent = document.getElementById('videoContent'); | |
videoContent.parentNode.removeChild(videoContent); | |
Y.one('body').removeClass('sqs-lightbox-open'); |
$(document).ready(function() { | |
$("a[href$='pdf']").click(function(event){ | |
var href = $(this).attr('href'); | |
_gaq.push(['_trackEvent', 'Downloads', 'File Downloaded', href]); | |
setTimeout(function() { window.location.href = href; }, 500 ); | |
return false; | |
}); | |
}); |
<!-- link --> | |
<a href="/article.html" class="triggerModal" > | |
<!-- modal --> | |
<div id="modal" class="modal fade modal-dialog" tabindex="-1" role="dialog" aria-labelledby="yourMom" aria-hidden="true"> | |
<div class="container"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> | |
<div class="row"> | |
<div id="response_modal"></div> | |
</div> |
The root password is gone. Shut off mySQL, restart, and set new password: | |
sudo /usr/local/mysql/support-files/mysql.server stop | |
sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables | |
mysql | |
>>>> UPDATE mysql.user SET Password=PASSWORD('new easy and memorable pw') WHERE User='root'; | |
Create new one if needed: | |
mysql -u projectuser -p | |
mysql | |
>>>> create database projectdb; |