Skip to content

Instantly share code, notes, and snippets.

View lallmon's full-sized avatar
👾
Defending the Planet!

Lucas K Allmon lallmon

👾
Defending the Planet!
View GitHub Profile
@lallmon
lallmon / Dockerfile
Created November 8, 2020 22:10
Godot CI
FROM ubuntu:focal
LABEL author="lucaskallmon@gmail.com"
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
git \
git-lfs \
python \
.
..
.DS_Store
.Trash
.android
.ansible
.ansible_galaxy
.bash_sessions
.cache
.config
@lallmon
lallmon / MxTimeline.jsx
Last active April 2, 2020 16:29
Test Issue
import React, { useState, useEffect } from 'react';
import Timeline from 'react-calendar-timeline';
import 'react-calendar-timeline/lib/Timeline.css';
import moment from 'moment';
import { DefaultApi } from 'mpt_api';
const MxTimeline = () => {
const [items, setItems] = useState(null);
const [groups, setGroups] = useState(null);
const apiInstance = new DefaultApi();
import React, { useReducer } from "react";
import "@patternfly/react-core/dist/styles/base.css";
import "@patternfly/react-styles/css/utilities/Spacing/spacing.css";
import {
Page,
PageHeader,
PageSidebar,
PageSection,
Wizard
} from "@patternfly/react-core";
@lallmon
lallmon / HoursListNative.jsx
Created June 15, 2017 00:35
React vs React Native
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Text, View } from 'react-native';
import NativeTachyons from 'react-native-style-tachyons'
export default NativeTachyons.wrap(
class HoursList extends PureComponent {
static propTypes = {
hours: PropTypes.shape({
closed_on: PropTypes.string,
@lallmon
lallmon / wire.css
Created April 19, 2017 19:31
Wireframe Class for CSS
.wire {
background:
linear-gradient(to top left,
rgba(0,0,0,0.1) 0%,
rgba(0,0,0,0.05) calc(50% - 0.8px),
rgba(0,0,0,0.8) 50%,
rgba(0,0,0,0.05) calc(50% + 0.8px),
rgba(0,0,0,0.05) 100%),
linear-gradient(to top right,
rgba(0,0,0,0.05) 0%,
@lallmon
lallmon / example.clj
Created May 16, 2016 18:59
Clojure Data As Code Example
;; The code starts as a string in a text file, like any programming language.
"(defn f [x]
(* x x))"
;; Then it's read by the reader.
(with-in-str
"(defn f [x]
(* x x))" (read))
;; Read returns this data structure:
@lallmon
lallmon / flower.coffee
Last active October 20, 2015 18:09
Creating a "branding flower" using mostly simple jQuery
$(document).ready ->
#only calls jqFloat library on the page with the flowers
#makes the flowers float a little
if activePage is "/"
$('.flower').jqFloat
height: 40
width: 40
speed: 1800
@lallmon
lallmon / Gistr.js
Last active October 20, 2015 18:26
Code examples from a couple projects.
/** This is an extension for Adobe's open source editor Brackets.io that creates Gists easily
I think its pretty clever code on a couple levels, but mainly because operating systems prevent
browser technologies from accessing the clipboard directly. So instead, I exposed the URL as a string within
a text field, and select it, so the user only needs to hit their Copy shortcut.
I think its cool.
*/
define(function (require, exports, module) {
'use strict';