Skip to content

Instantly share code, notes, and snippets.

var moment = require('moment');
var fs = require('fs');
global.lottery = {};
function loadLottery() {
try {
lottery = JSON.parse(fs.readFileSync('config/lottery.json', 'utf8'));
} catch (e) {
console.log("Could not load lottery database.");
}
@Lord-Haji
Lord-Haji / profile.js
Last active February 12, 2017 17:07
Profile: Refactor a bit to display userGroup symbol rather than 'Group' Label
/**
* profile.js
* Displays to users a profile of a given user.
* For order's sake:
* - vip, dev, customtitle, friendcode, and profie were placed in here.
* Updated and restyled by Mystifi; main profile restyle goes out to panpawn/jd/other contributors.
**/
'use strict';
let geoip = require('geoip-lite-country');
{"absol":{"id":"absol","name":"Absol","image":"http://assets17.pokemon.com/assets/cms2/img/cards/web/XY6/XY6_EN_40.png","rarity":"Rare","collection":["Darkness","RU-Pack","XY-Roaring Skies","Gen3"],"points":6},"absolex":{"id":"absolex","name":"Absol EX","image":"http://assets.pokemon.com/assets/cms2/img/cards/web/XYP/XYP_EN_XY62.png","publicid":"359EX","rarity":"Epic","collection":["darkness","uupack","xypromo","expack","gen3"],"points":10},"accelgor":{"id":"accelgor","name":"Accelgor","image":"http://assets10.pokemon.com/assets/cms2/img/cards/web/XY3/XY3_EN_9.png","publicid":"617","rarity":"Uncommon","collection":["grass","rupack","xyfuriousfists","gen5"],"points":3},"acetrainer":{"id":"acetrainer","name":"Ace Trainer","image":"http://assets5.pokemon.com/assets/cms2/img/cards/web/XY7/XY7_EN_69.png","publicid":"actrn","rarity":"Rare","collection":["trainer","supporter","xyancientorigins"],"points":6},"acrobike":{"id":"acrobike","name":"Acrobike","image":"http://assets14.pokemon.com/assets/cms2/img/cards/web/X

Keybase proof

I hereby claim:

  • I am lord-haji on github.
  • I am lord_haji (https://keybase.io/lord_haji) on keybase.
  • I have a public key ASBFb_PzvubqAw3hOoLaoR-XEdXXtOSWSjUJxJ3APBO5CAo

To claim this, I am signing this object:

@Lord-Haji
Lord-Haji / EmailID_Generator.java
Created January 10, 2018 19:43
[JAVA][BETA] Shows random Email ID combinations with using user's Name / DOB <3
import java.util.*;
class EmailID_Generator
{
String domainList[] = {"@outlook.com", "@gmail.com", "@icloud.com", "@rediffmail.com", "@hotmail.com", "@live.in", "@yahoo.co.in"};
char valid_chars[] = {' ', '.', '!', '#', '$', '%', '&', '*',
'+', '-', '/', '=', '?', '^', '_', '`', '|', '~',};
void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter name:");