Skip to content

Instantly share code, notes, and snippets.

@notyoyoma
notyoyoma / mk_local_bin.sh
Created August 28, 2019 20:51
make a .local/bin and add it to your path
mkdir ~/.local/bin
echo "~/.local/bin:\$PATH" >> .bashrc
window.$ = window.jQuery = require('jquery');
import Popper from 'popper.js';
window.Popper = Popper;
window.Cookies = require('js-cookie');
require('./django_ajax_csrf.js');
require('bootstrap/dist/js/bootstrap.js');
require('core/static/css/styles.scss');
$.fn.flashMessage = function(message, callback, duration) {
@notyoyoma
notyoyoma / Beacons.ini
Last active May 22, 2017 18:37
ARK Game.ini
[coming soon]
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" type="text/javascript" charset="utf-8"></script>
<script>
$(window).ready(function(){
setInterval(function(){
window.location.hash += "A";
}, 300);
});
</script>
<img src="https://media.giphy.com/media/ZyT7OVt78WZmE/giphy.gif" alt="turtle">
// margin
@u-m-dirs: t top, r right, b bottom, l left;
@u-m-opts: '' 40px, '\+' 60px, '\+\+' 80px, '-' 20px, '--' 10px, '0' 0px;
.loopmarginoptions(@dir-class, @dir, @iterator:1) when(@iterator <= length(@u-m-opts)) {
@u-m-class: extract(extract(@u-m-opts, @iterator), 1);
@u-m-dist: extract(extract(@u-m-opts, @iterator), 2);
@class: ~"u-m@{dir-class}@{u-m-class}";
.@{class} {
margin-@{dir}: @u-m-dist;
}
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1" width="200">
<drawing t="translate(0,31)">
# ssh => starwars
starwars(){
telnet towel.blinkenlights.nl
}
alias ssh=starwars
# rm => nope
nopelol(){
echo "Permission Denied"
}
@notyoyoma
notyoyoma / data.js
Last active September 1, 2015 03:57
// Data passed to Placester search during AJAX request
[
{"name":"iDisplayLength","value":9},
{"name":"iDisplayStart","value":0},
{"name":"sEcho","value":2},
{"name":"context","value":"custom_listings_search"},
{"name":"import_id","value":"54d18daab1c93c67b4000001"}, // <== The value is getting passed to Wordpress's ajax handler
{"name":"location[address]","value":""},
{"name":"location[neighborhood]","value":""},
{"name":"metadata[min_price]","value":""},
@notyoyoma
notyoyoma / SassMeister-input.scss
Last active August 29, 2015 14:27
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$mqs:
"md" "max-width: 940px",
"sm" "max-width: 680px",
"xs" "max-width: 480px";
@notyoyoma
notyoyoma / SassMeister-input.scss
Created August 22, 2015 19:30
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$spaces: "m" "margin", "p" "padding";
$directions: "t" "top", "r" "right", "b" "bottom", "l" "left";
$charges: "" "-";
$defPX: 10;