Skip to content

Instantly share code, notes, and snippets.

View BiosElement's full-sized avatar

William Chambers BiosElement

View GitHub Profile
use std::sync::Arc;
use handlebars::Handlebars;
use serde_json::json;
pub async fn test(hb: Arc<Handlebars>) -> impl warp::Reply {
hb.render("template_test", &json!({"username": "Warp"})).unwrap()
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RelativeMousePosition : MonoBehaviour
{
public float ActualMousePosition;
public float RelativePosition;
public float scaleFactor;
var roleUpgrader = {
/** @param {Creep} creep **/
run: function(creep) {
if(creep.memory.fullcheck && creep.carry.energy == 0) {
creep.memory.fullcheck = false;
}
if(!creep.memory.fullcheck && creep.carry.energy == creep.carryCapacity) {
creep.memory.fullcheck = true;
console.log("Hello World");
var testsubject = 1;
var totalcount = 0;
while (testsubject < 1000) {
console.log("Testing " + testsubject);
if (testsubject % 3 == 0) {
console.log(testsubject + " Divisible by 3!");
totalcount = totalcount + testsubject;
@BiosElement
BiosElement / keybase.md
Created October 26, 2014 20:29
keybase.md

Keybase proof

I hereby claim:

  • I am BiosElement on github.
  • I am bioselement (https://keybase.io/bioselement) on keybase.
  • I have a public key whose fingerprint is 96B5 51C8 B294 3BA6 AB72 E90C 4B6F 281B E95C CA7D

To claim this, I am signing this object:

cssStyles = '&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>';
cssStyles = '&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;margin-bottom:1.6em;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>';
@BiosElement
BiosElement / gist:6765489
Created September 30, 2013 15:28
Ghost: Responsive Embedded Videos
<script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
<script>
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$(".post-content").fitVids();
});
</script>
@BiosElement
BiosElement / gist:6692431
Created September 24, 2013 22:50
Ghost: SubToMe Part 2
<a class="subscribe icon-feed" onclick="(function(){var z=document.createElement('script');z.src='https://www.subtome.com/load.js';document.body.appendChild(z);})()"><span class="tooltip">Subscribe!</span></a>
@BiosElement
BiosElement / gist:6692418
Created September 24, 2013 22:48
Ghost: SubToMe Part 1
<a class="subscribe icon-feed" href="http://blog.ghost.org/rss/"><span class="tooltip">Subscribe!</span></a>