Skip to content

Instantly share code, notes, and snippets.

View meshileya's full-sized avatar
🏠
Working from home

meshileya

🏠
Working from home
  • Lagos, Nigeria
View GitHub Profile
@ozkansari
ozkansari / EncryptSample.java
Created March 27, 2019 15:21
PIN Block Creation
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class EncryptSample {
private static final String KEY = "AB1C11111111111AAAAAAADDDDD11111";
private static final int PIN_LENGTH = 6;
public static void main(String[] args) throws Exception {
@djade007
djade007 / nl.php
Last active June 25, 2016 14:24
Program to validate Nairaland credentials
<?php
/*
* Program to validate login details from nairaland.com
* Author djade <www.djade.net>
* */
// returns true if successful
function validateNL($username, $password) {
@meshileya
meshileya / circle_with_opengl.cpp
Created January 2, 2016 16:41
Using opengl to create a 3D circle
// circle_assignment.cpp : Defines the entry point for the console application.
//to draw a circle using 3 dimentional graph style
#include "stdafx.h"
#include "glut.h"
GLfloat xRotated, yRotated, zRotated;
GLdouble radius=1;//to set the radius of the circle
@santoshrajan
santoshrajan / JSONStringify.swift
Created October 12, 2014 05:36
JSON Stringify in Swift
// Author - Santosh Rajan
import Foundation
let jsonObject: [AnyObject] = [
["name": "John", "age": 21],
["name": "Bob", "age": 35],
]
func JSONStringify(value: AnyObject, prettyPrinted: Bool = false) -> String {
@jewelsea
jewelsea / TaskBasedSplash.java
Last active February 26, 2024 13:33
Displays a JavaFX splash page for an intensive startup task with progress monitoring
import javafx.animation.FadeTransition;
import javafx.application.Application;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.collections.*;
import javafx.concurrent.*;
import javafx.geometry.*;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.effect.DropShadow;
import javafx.scene.image.*;