Skip to content

Instantly share code, notes, and snippets.

@Alldrich
Alldrich / fedora_setup.sh
Created February 19, 2022 21:20 — forked from engineervix/fedora_setup.sh
Things to do after installing Fedora
#!/usr/bin/env bash
# ---------------------------------------------
# This has been updated to work with Fedora 35
# ---------------------------------------------
# Run a System Update
sudo dnf update
# Enable RPM Fusion
@baughmann
baughmann / SortableList.tsx
Last active December 8, 2019 17:15
react-native Drag-and-Drop Sortable Horizontal List
/**
* @author Nick Baughman
* @description SortableList is a drag-and-drop horizonal list component that allows for animated re-ordering of a list of elements.
* @todo This component *WILL* require customization! You cannot just copy and paste! See the "TODOs"...
*/
import React, {useState, useEffect} from 'react';
import {
LayoutRectangle,
StyleSheet,
/** input args:
1) https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-examples/example-remotegraph/conf/jgex-remote.properties
2) https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-dist/src/assembly/cfilter/conf/janusgraph-cassandra-configurationgraph.properties
** /
public static void main(String[] args) throws ConfigurationException {
JanusGraph janusgraph1;
JanusGraph janusgraph2;
Cluster cluster;
Client client;
@demonixis
demonixis / MathHelper.js
Created December 4, 2012 10:38
JavaScript Math helper
var MathHelper = {
// Get a value between two values
clamp: function (value, min, max) {
if (value < min) {
return min;
}
else if (value > max) {
return max;
}