Skip to content

Instantly share code, notes, and snippets.

View daverave1212's full-sized avatar

David Irimia daverave1212

View GitHub Profile
// Run with `groovy caesars-casino.groovy`
// (c) 2011 Playtika
// This code is licensed under MIT license (see LICENSE.txt)
import java.util.Collections;
class CaesarsCasino {
static void main(String[] args) {
def symbolsOnLine = "\$@#7?"
def machine = new Machine(symbolsOnLine)
@daverave1212
daverave1212 / SGBD Proiect.md
Last active June 2, 2020 14:27
SGBD Proiect
<title>SGBD Proiect</title>
@daverave1212
daverave1212 / PL-SQL.md
Last active January 15, 2021 17:17
PL-SQL
<title>PL-SQL</title>
<title>Crypto Examen</title>
@daverave1212
daverave1212 / Calcul Numeric Sheet.md
Last active January 21, 2021 14:42
Matlab Understandings

Cursul 1

Metoda bisectiei

eroarea absoluta = |x - xk| <= b-a / 2^k+1^> functia f definita pe [a,b], epsilon

loop log2( b-a /| supra epsilon) +1 times
	x = a + (b - a)/2
	if f(x) == 0

return last x

@daverave1212
daverave1212 / PlaneTriangleUtils.cs
Created April 15, 2020 22:02
Remove triangles and squares from a 3D plane object.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
* How to use:
* .DestroySquareAtPosition( Vector3 ) //
* .DestroyTriangleAtPosition( Vector3 ) // Returns true if a triangle was found;
*
*/
@daverave1212
daverave1212 / Web Dev DAW.md
Last active January 18, 2020 10:48
Web Dev DAW
@daverave1212
daverave1212 / Log.hx
Created December 19, 2018 00:54
This class shows a special 'console' directly on your screen. Use Log.go(...)
/*
Stencyl exclusively uses the Haxe programming language.
Haxe is similar to ActionScript and JavaScript.
Want to use native code or make something reusable? Use the Extensions Framework instead.
http://www.stencyl.com/help/view/engine-extensions/
Learn more about Haxe and our APIs
http://www.stencyl.com/help/view/haxe/
*/
@daverave1212
daverave1212 / TextInput.hx
Last active December 17, 2018 17:56
Should work like HTML input tags. Not complete. To do: styling with CSS
// BACKUP
package scripts;
import com.stencyl.graphics.G;
import com.stencyl.behavior.Script;
import com.stencyl.behavior.Script.*;