Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jean-cédric THÉROND kane-thornwyrd

🏠
Working from home
Block or report user

Report or block kane-thornwyrd

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
@kane-thornwyrd
kane-thornwyrd / echo.gd
Last active May 12, 2019
echoes for Godot 3.1 by Kane Thornwyrd under GPL v3.0
View echo.gd
extends Sprite
class_name Echo
const SHIFT_TRANS = Tween.TRANS_SINE
const SHIFT_EASE = Tween.EASE_OUT
export var sprite_path: NodePath
export var gradient: Gradient
onready var echo_timer:Timer = $echo_timer
View camera.gd
extends Camera2D
const LOOK_AHEAD_FACTOR:float = 0.45
export var tilemap_path:NodePath
onready var tilemap = self.get_node(tilemap_path)
onready var camera_previous_position = self.get_camera_position()
var facing:int = 0
View Player.gd
extends Area2D
var target_point = null
var speed_factor = 3
var bias = 0.1
func unhandled_input(event):
if event is InputEventScreenTouch and not target_point:
target_point = self.position + Vector2(position.x, position.y - 150)
View raycaster.gd
extends Node2D
var skin_width:float = 1
export var buffer_size:int = 3 setget set_buffer_size
var buffer:Array = []
func _ready() -> void:
set_buffer_size(buffer_size)
View error.log
~/projects/cozy-ui > master > yarn test
yarn run v1.12.3
$ yarn test:jest
$ env BABEL_ENV=transpilation jest --verbose --coverage
PASS > react/AppIcon/test/Preloader.spec.js
Preloader
console.error node_modules/react/cjs/react.development.js:225
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
View alarm.ino
#include <Wire.h>
#include "RTClib.h" // https://github.com/adafruit/RTClib
// https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/overview
// https://github.com/adafruit/RTClib/blob/master/examples/ds1307/ds1307.ino
RTC_DS1307 RTC;
void setup() {
pinMode(13, OUTPUT);
}
@kane-thornwyrd
kane-thornwyrd / .zshrc
Last active Jul 2, 2018
ZSH + Antigen conf
View .zshrc
source ~/antigen.zsh
export DEFAULT_USER=kane-thornwyrd
export EDITOR=atom
export NVM_LAZY_LOAD=true
export EMOJI_CLI_KEYBIND="^e"
export NVM_AUTO_USE=true
which htop >/dev/null && alias top=htop
autoload -U colors && colors
setopt promptsubst
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View ore_processor-base.json
[
{
"input_stack": { "name": "cobblestone" },
"ticks": 40,
"output_fluids": {
"second": { "name": "bcop-gaseous_lava-searing", "quantity": 500 }
}
},
{
"input_stack": { "ore": "oreIron" },
View crash.log
---- Minecraft Crash Report ----
WARNING: coremods are present:
CoreMod (Aroma1997Core-1.12.2-2.0.0.0.b135.jar)
ForgelinPlugin (Forgelin-1.6.0.jar)
Contact their authors BEFORE contacting forge
// Quite honestly, I wouldn't worry myself about that.
Time: 1/13/18 2:38 PM
You can’t perform that action at this time.