Skip to content

Instantly share code, notes, and snippets.

View luizsan's full-sized avatar

Luizsan luizsan

View GitHub Profile
@luizsan
luizsan / simplewheel.lua
Last active August 18, 2022 19:17
Simplest Custom Lua Wheel for Stepmania
-- number of items in the wheel
local wheelSize = 13
-- index of item at the center of the wheel
local wheelCenter = math.ceil( wheelSize * 0.5 )
-- dimensions of wheel item
local wheelItem = { width = 160, height = 120 }
-- spacing in pixels between each item center
@luizsan
luizsan / index.html
Created August 17, 2018 23:52 — forked from hnakamur/index.html
Cubic bezier curve length
<!DOCTYPE html>
<html>
<head>
<title>Cubic bezier curve length</title>
<style>
#figure1 {
border: 1px solid black;
}
.draggable {
@luizsan
luizsan / SavWav.cs
Created May 5, 2018 04:48 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
@luizsan
luizsan / GitHub-Desktop-Bitbucket.md
Created May 2, 2018 16:29 — forked from glueckpress/GitHub-Desktop-Bitbucket.md
[How-to] Use GitHub Desktop to clone and commit to a Bitbucket repository just as you would with any GitHub repository. (Mac)

Clone Bitbucket Repository and Add it to GitHub Desktop App (Mac)

You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:

  1. Clone the Bitbucket repo locally via command line.
  2. Add the cloned repository to your GitHub Desktop app.

After completing these 2 steps, you’ll be able to execute sync, push, pull, commit, and other git commands available in GitHub Desktop for your Bitbucket repository just as you would for any GitHub repository.

You will need your Bitbucket repository’s git URL as available on the Overview page of your repository:

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BezierCurveScript : MonoBehaviour {
public class BezierPath
{
public List<Vector3> pathPoints;
private int segments;
@luizsan
luizsan / SublimeText-Project-Line-Count
Created August 18, 2017 05:56 — forked from halcarleton/SublimeText-Project-Line-Count
Count total lines of code in a Sublime Text Project or Directory
Go to menu:
Find -> Find in Files... (windows: ctrl+shift+f)
Switch on reg_ex button (windows: alt+r)
Find:
^.*\S+.*$
Where:
c:\your_folder\,*.php,*.js,*.inc,*.html,*.htm,*.scss, -*/folder_to_exclude/*, -*.min.js