Skip to content

Instantly share code, notes, and snippets.

William Crandell CrandellWS

Block or report user

Report or block CrandellWS

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
@CrandellWS
CrandellWS / README.md
Created Sep 25, 2015 — forked from mbostock/.block
Cluster Dendrogram
View README.md

A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.

Compare to this radial layout.

@CrandellWS
CrandellWS / README.md
Last active Oct 17, 2015 — forked from mbostock/.block
Contractor.Support Collapsible Tree
@CrandellWS
CrandellWS / README.md
Last active Sep 29, 2015 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.
View README.md

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@CrandellWS
CrandellWS / height.java
Created Apr 30, 2016 — forked from hamakn/height.java
Android: Get height of status, action, navigation bar (pixels)
View height.java
// status bar height
int statusBarHeight = 0;
int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) {
statusBarHeight = getResources().getDimensionPixelSize(resourceId);
}
// action bar height
int actionBarHeight = 0;
final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes(
@CrandellWS
CrandellWS / .travis.yml
Created Sep 23, 2016 — forked from mariotaku/.travis.yml
Sign and upload compiled apk to Github releases automatically using Travis CI
View .travis.yml
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-22.0.0
@CrandellWS
CrandellWS / android-19-circle.yml
Last active Feb 16, 2017 — forked from donnfelker/android-19-circle.yml
Sample CircleCI Configuration For an Android App
View android-19-circle.yml
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/your-app-name/app/build/outputs/apk/
machine:
environment:
@CrandellWS
CrandellWS / circle.yml
Last active Jan 4, 2018 — forked from dazza5000/circle.yml
CircleCI Android Configuration Template - circle.yml
View circle.yml
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/AndroidApp/app/build/outputs/apk/
machine:
environment:
View YourClass.cs
using UnityEngine;
using UnityEngine.Networking;
public class YourClass : Player
{
[Client]
public void Addthing()
{
@CrandellWS
CrandellWS / underwater.js
Created Dec 7, 2017 — forked from RichardSlater/underwater.js
Unity3d Underwater Effect
View underwater.js
//This script enables underwater effects. Attach to main camera.
//Define variables
var underwaterLevel = 7;
//The scene's default fog settings
private var defaultFog;
private var defaultFogColor;
private var defaultFogDensity;
private var defaultSkybox;
You can’t perform that action at this time.