Skip to content

Instantly share code, notes, and snippets.

@alvinl
alvinl / machine.js
Created July 22, 2020 15:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
  • Protect all endpoints
  • No hover over effect on login button
  • Cleanup CSS
  • Link deposit page
  • Add secuirty to deposit page
  • Style input box and deposut button on deposit page
@alvinl
alvinl / post.js
Last active August 29, 2015 14:15
var req = {
method: 'POST',
url: 'http://104.243.42.114:3000/auth/register',
data: {
email: 'test@google.com',
password: 'somePassword'
},
}
$http.post('http://104.243.42.114:3000/auth/register', req.data)
.success(function (data, status, headers, config) {

Keybase proof

I hereby claim:

  • I am alvinl on github.
  • I am alvinl (https://keybase.io/alvinl) on keybase.
  • I have a public key whose fingerprint is 02D5 40D6 834D 3A2C BC13 452D 7026 FA5E 5B4B 2B73

To claim this, I am signing this object:

function GetCurrencyCode( currencyId )
{
switch( currencyId )
{
case 1:
return 'USD';
case 2:
return 'GBP';
case 3:
return 'EUR';
*HUD
-HP
-Armor
-Wallet
-Job
-Salary
-Ammo(on the right side corner)
-Session time(how long he played on the server and total playing time.)
-Plays name above theyr name and theyr rank( like donater or admin super admin)
-session time(like SmurfRP at the healthbar etc)
@alvinl
alvinl / req
Last active December 22, 2015 01:59
plugin
- JetPack
- Auto Donation timer
- Donate add in game example !donate itzwizzard, and that will add me to the 1 month timer of donator
- slot reservation for donators
- Gold wep skin for there class
- Sparkle trail that can be toggled by doing !trail, do it once turnes it on, twise turns it off and so on.
- A green D next to there name and pink txt colour
@alvinl
alvinl / index.html
Created August 7, 2013 18:35
via:geojson.io
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.marker-properties {
border-collapse:collapse;
{
"botname": "donation bot",
"username": "bot username",
"password": "bot password",
"admins": ["123456"],
"autoAccept": true,
"idle": true,
"idleGames": [440],
"debug": false,
"tradeWhitelist": {
{
"botname": "donation bot",
"username": "bot username",
"password": "bot password",
"admins": ["123456"],
"autoAccept": true,
"idle": true,
"idleGames": [440],
"debug": false,
"tradeWhitelist": {