This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class ExtDebug | |
{ | |
//Draws just the box at where it is currently hitting. | |
public static void DrawBoxCastOnHit(Vector3 origin, Vector3 halfExtents, Quaternion orientation, Vector3 direction, float hitInfoDistance, Color color) | |
{ | |
origin = CastCenterOnCollision(origin, direction, hitInfoDistance); | |
DrawBox(origin, halfExtents, orientation, color); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DEFAULT_GOAL := run | |
runonly: | |
cd ./build/ && ./RunRoR -map simple2 -truck UnlimitedTrophyTruck.truck -enter | |
run: download | |
cd ./build/ && ./RunRoR -map simple2 -truck UnlimitedTrophyTruck.truck -enter | |
download: build | |
rsync -arzz vbox:/root/rigs-of-rods/redist/ ./build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env/ bash | |
rm -rf /tmp/upgrade | |
for archive in *.zip; do | |
unzip $archive -d /tmp/upgrade | |
for mesh in /tmp/upgrade/*.mesh; do | |
OgreMeshUpgrader $mesh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = [ | |
{ | |
backgroundColor: 'transparent', | |
borderColor: 'rgba(115,115,115,1)', | |
}, | |
{ | |
backgroundColor: 'transparent', | |
borderColor: 'rgba(241, 90, 96, 1)', | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
context = bpy.context | |
scene = context.scene | |
def bones(): | |
active = context.active_pose_bone | |
if active is context.selected_pose_bones[0]: | |
return [active, context.selected_pose_bones[1]] | |
return [active, context.selected_pose_bones[0]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('../less/app.less') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Detect elements that add horizontal scroll to the page | |
docWidth = document.documentElement.offsetWidth | |
Array.from(document.getElementsByTagName("*")).filter(el => { | |
const rect = el.getBoundingClientRect() | |
return rect.right > docWidth || rect.left < 0 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**", | |
"bower_components/**" | |
], | |
"always-semicolon": true, | |
"block-indent": " ", | |
"color-case": "lower", | |
"color-shorthand": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function scrollOffset(el) { | |
const box = el.getBoundingClientRect(); | |
const body = document.body; | |
const docEl = document.documentElement; | |
const scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop; | |
const scrollLeft = window.pageXOffset || docEl.scrollLeft || body.scrollLeft; | |
const clientTop = docEl.clientTop || body.clientTop || 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if ($paginator->hasPages()) | |
<nav class="pagination"> | |
<a href="{{ $paginator->previousPageUrl() }}" | |
class="pagination-previous {{ $paginator->onFirstPage() ? 'is-disabled': '' }}"> | |
Previous | |
</a> | |
<a href="{{ $paginator->nextPageUrl() }}" | |
class="pagination-next {{ !$paginator->hasMorePages() ? 'is-disabled': '' }}"> |
NewerOlder