#ABOUT
#INSTALLATION Run following commands:
apt-get install curl -y
curl https://gist.githubusercontent.com/mikepenz/bea8ef149c4c04917f04/raw/7fded476f46b156e3bc3cb8b0696fa27267c6b78/debianessentials.sh | sh;
<#-- dump.ftl | |
-- | |
-- Generates tree representations of data model items. | |
-- | |
-- Usage: | |
-- <#import "dump.ftl" as dumper> | |
-- | |
-- <#assign foo = something.in["your"].data[0].model /> | |
-- | |
-- <@dumper.dump foo /> |
#ABOUT
#INSTALLATION Run following commands:
apt-get install curl -y
curl https://gist.githubusercontent.com/mikepenz/bea8ef149c4c04917f04/raw/7fded476f46b156e3bc3cb8b0696fa27267c6b78/debianessentials.sh | sh;
$('[data-toggle="modal"]').click(function () { | |
var url = $(this).attr('href'); | |
$.get(url, function (data) { | |
var modal = $('<div id="clue-modal" class="modal fade" tabindex="-1" role="dialog"><div class="modal-dialog"><div class="modal-content">' + data + '</div></div></div>').modal(); | |
modal.on("hidden.bs.modal", function () { | |
$(this).remove(); | |
}); | |
setTimeout(function(){ | |
modal.modal('hide'); | |
},5000); |
Some examples of the things one can do with Vanilla JavaScript. Comparison of Vanilla JS to jQuery and Underscore.js.
#!/bin/bash | |
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/ | |
# Usage function, displays valid arguments | |
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; } | |
# Default variables | |
fps=15 | |
width=480 |
import { Override, Data, motionValue, useTransform } from "framer" | |
// Keep track of the state of our application | |
const data = Data({ isPastLimit: false }) | |
// Create a MotionValue to track contentOffsetY | |
const contentOffsetY = motionValue(0) | |
// Listen for changes to contentOffsetY | |
contentOffsetY.onChange(offset => (data.isPastLimit = offset < -52)) |