Skip to content

Instantly share code, notes, and snippets.

Jesse Boyer JREAM

Block or report user

Report or block JREAM

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JREAM
JREAM / bulma-burger-es6.js
Last active May 17, 2019
Bulma Burger JavaScript ES6 | Ecmasrcipt
View bulma-burger-es6.js
{/* @desc ES6 JS - Bulma Burger
@sample DOM
________________________________________________
<nav class="navbar">
<div class="navbar-burger" id="navbar-burger">
<span></span>
<span></span>
<span></span>
</div>
<div class="navbar-menu" id="navbar-menu">
@JREAM
JREAM / lost-my-mind.scss
Created Feb 7, 2019
SCSS Placeholder, Function, Mixin, Loop,
View lost-my-mind.scss
// Boy this changes a lot when you dont do it for some time
%std-grid {
display: grid;
grid-gap: 0;
}
@function repeat($string, $times) {
$result: '';
@JREAM
JREAM / install-apache.sh
Last active Nov 19, 2018
Server: PHP CLI Install Fast | Ubuntu 18.04 LTS
View install-apache.sh
#!/bin/bash
# (Optional) Apache
sudo apt install -y \
apache2 \
libapache2-mod-php7.2
@JREAM
JREAM / .eslintrc
Created Jul 31, 2017 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@JREAM
JREAM / installphp7.sh
Last active Sep 5, 2015 — forked from tronsha/installphp7.sh
Install PHP7 to Ubuntu
View installphp7.sh
#!/bin/bash
#
# Instructions:
# 1: sudo chmod +x installphp7.sh
# 2: sudo ./installphp7.sh
#
apt-get update
apt-get install -y git-core\
autoconf\
bison\
@JREAM
JREAM / site.js
Created Aug 10, 2015
BS3 Force Footer Bottom
View site.js
$(function() {
force_footer_bottom();
});
function force_footer_bottom() {
var docHeight = $(window).height();
var footerHeight = $('#footer').height();
var footerTop = $('#footer').position().top + footerHeight;
if (footerTop < docHeight) {
$('#footer').css('margin-top', 10+ (docHeight - footerTop) + 'px');
@JREAM
JREAM / default.vcl
Last active Feb 9, 2017 — forked from reifman/default.vcl
Varnish 3.X for WP
View default.vcl
# Default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 800;
}
View folder-watch.py
import pyinotify
# ---------------------------------------------------------------------
# Folder Listener
# ---------------------------------------------------------------------
class EventHandler(pyinotify.ProcessEvent):
def process_IN_CREATE(self, event):
print "Creating:", event.pathname
@JREAM
JREAM / gist:53e50741cfb9b6236342
Created Sep 28, 2014
SS Bot - File Purposes
View gist:53e50741cfb9b6236342
Some of these files are self-explanatory. I'm trying to get to the root of what these files serve as a purpose.
Downloaded from: https://code.google.com/p/subspace-python-core/downloads/list
__init__.py - Just Loads Directory
Amysql.py - Looks like the SQL Adapter
BotConfig.py - Passes a {} here from where?
BotInstance.py - Receivies many arguments and the Handles Bot Events.
Runs on a thread, so this "Bundle of Bot Items" can run multiple Bots at a time, So do you add to the JSON list of Bots? This looks very out of date.
BotUtilities.py - This is a large file, but I noticed a LoadBot function in here, I don't understand this because in TestBoy.py it doesn't call BotUtilities.LoadBot().
Bots.json - Possibly loaded into the BotConfig?
You can’t perform that action at this time.