Skip to content

Instantly share code, notes, and snippets.

Andrew Cassidy drewcassidy

Block or report user

Report or block drewcassidy

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
View log.txt
qrc:/qml/AccountSummary.qml:9:5: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/AccountSummary.qml:60:5: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/AccountSummary.qml:9:5: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/AccountSummary.qml:60:5: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/MessageView.qml:302:21: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/MessageView.qml:281:17: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/MessageView.qml:212:17: QML Label:
View log.txt
Error registering app: Post cybre.space/api/v1/apps: unsupported protocol scheme ""
@drewcassidy
drewcassidy / NoDXT.cs
Last active Mar 28, 2019
Stops Unity from compressing textures on import (must reset any existing texture imports to take effect, or group select and set compression to "none"). Drag this file into Assets/Plugins/Editor (make the folders if they don't exist already)
View NoDXT.cs
using UnityEditor;
using UnityEngine;
public class NoDXT : AssetPostprocessor
{
void OnPreprocessTexture() {
var importer = (TextureImporter)assetImporter;
importer.textureCompression = TextureImporterCompression.Uncompressed;
}
}
@drewcassidy
drewcassidy / convertdds.sh
Last active Jun 15, 2019
Convert all input to DDS and replace using nvcompress or Crunch
View convertdds.sh
#!/bin/bash
mkdir -p /tmp/dds > /dev/null
tool="nvcompress"
for file in "$@"
do
echo "$file"
dirname=$(dirname "$file")
basename=$(basename "$file")
View MeshPostProcessor.cs
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace MeshTools
{
public class MeshPostProcessor : AssetPostprocessor
{
@drewcassidy
drewcassidy / Server Arch Installation.md
Last active Oct 21, 2018
Steps taken to install Arch on a machine with BIOS using LVM and GRUB
View Server Arch Installation.md

Server Arch Installation

many steps taken from this tutorial

Connect to wifi

wifi-menu

(way easier than using wpa_supplicant)

Setup drive

@drewcassidy
drewcassidy / Deque.cs
Last active May 8, 2017
A Deque class written in C#. has no external dependencies!
View Deque.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Voxelgon.Collections {
public class Deque<T> : ICollection<T> {
#region Fields
View keybase.md

Keybase proof

I hereby claim:

  • I am drewcassidy on github.
  • I am drewcassidy (https://keybase.io/drewcassidy) on keybase.
  • I have a public key whose fingerprint is 4B68 3A9B 53E5 EC6B 5C2F B8F7 774E CFF4 464A C5CD

To claim this, I am signing this object:

@drewcassidy
drewcassidy / BinarySearch.java
Last active Jun 8, 2017
stupid binary search for my AP Computer Science class in High School
View BinarySearch.java
public class BinarySearch {
public int find(int[] arr, int v) {
int i = 0;
int b = (1 << (Double.doubleToLongBits(arr.length - 1) >> 51));
while ((b >>>= 1) > 0) {
if ((i | b) < arr.length && arr[i | b] <= v) i |= b;
if (arr[i] == v) return i;
}
@drewcassidy
drewcassidy / Doxyfile
Last active Oct 7, 2016
mbed-drivers doxygen
View Doxyfile
# Doxyfile 1.8.8
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
You can’t perform that action at this time.