Skip to content

Instantly share code, notes, and snippets.

View gjj's full-sized avatar
🌴
ayy

Jia Jian Goi gjj

🌴
ayy
View GitHub Profile
{
"@context": [{
"@version": 1.1
},"https://www.w3.org/ns/odrl.jsonld", {
"ex": "https://example.org/examples#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"DrivingLicenceCredential": "ex:DrivingLicenceCredential",
{
"unmappedProperty": "key5",
"activeCtx": {
"mappings": [
["VerifiableCredential", {
"reverse": false,
"_termHasColon": false,
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential",
"_prefix": false,
"protected": true,
{
"cipherText": "Ypgx9ciY1mzVmTA1qiBFMvy1wuxp0zwqmmxPo2PMG4i7Kbu0STITnHOQ/xADZuZ5/PiG35L9ikYYHjfomTiE27X+9AoatxiFP7eRZqBiKqwtl/hdkcB1t+ORM91t+EyCZD82EligjXNxa5p/4yFHNGbrUuXEuCtAeBy+8ynnm/6y64ATwx/5wAF3/9cmLKOD0qJCSqJw+IzgaNbaV9WPrCIYPt/u5LJ6dSH9/eegzTWMMAdFDHX2lMypycyoZuSzTtutSzJTJEHm1RPsJI5Ga/JpfI1pmsRpVUwRlL0Yieakyn+7Al8o+68IYmKvCe6F65Rn8QotHMxH6s8RSd3TY0OtaB4syiPRlUvsdFza8NKw0+PoQi5G7klxn/pRf+JjPtPrL/2wcpLJFkPlczQpbjStT7+Mp85wye7YAfQbdXn63D9phpji+xsFGSp1PoOISbXfHuIhfxNCL5O5AVKGUKG6YcbmBSwvnmn0DlefVMQDnrB4TdwkGcIYbcVHIZChTBBVFq7BbYDVgWHZDddFEKc2tvPgZdZFdiX8kMlievKE0sWzxGdIXpBPpdw3/cu1PODWYQcsBY5GFX2iwWOTWFfsMoMn1LzC0ZVAyqqKuhIkKkAfE4DYQbgMek0HRolWWjnLCkD6EdHZyyor10wZy648M5xxbMxYlwMu/RUUEAYChi0uw/EiCw5bwibzIq8Swy2jeGTWH8hUFkZL4TKSxos2N64DMbKvlgz49uRx1JYb/uBrA8w5em8+nUcCezxzyuPxcfu8YvEZLhNOezJehCTgIXdWJWcAmH7cQpgmS8zmMotYm8IPxCoPb4wcUGwos3JvxsmVmAJtCEyrDoI0Elpkxs8QoDurmZCt6tuqENstnXgNT2W04oWKP9R333d+5iy8F1qHObesHxKfBcS8uSIpSpFUiQ7xbCFmB08fCxOtAMrqBIhfbbbkiMYuFrHsf3pjagzp1w8GnboGDvWzEi91kp28OY8jdbQfwLXZdB9KW
{
"schema": "opencerts/v1.5",
"data": {
"attainmentDate": "a6474204-94a4-499b-af95-b161ea0f6996:string:2012-12-31T23:59:00+08:00",
"transcript": [
{
"level": "3e5777f7-d391-4751-8b23-6afdd32bae16:string:ORDINARY",
"grade": "a7f366e2-529a-48ef-bee8-85ab541c58f1:string:3",
"name": "84353896-0cfe-4231-a450-1dfca56c2b5f:string:ENGLISH LANGUAGE",
"languageMedium": "6aaaf77e-7f4e-4155-b03a-afc86658750d:string:ENGLISH",
contract Add {
uint myData;
function sum (uint value1, uint value2) public {
myData = value1 + value2;
}
function show() public view returns (uint) {
return myData;
}
}
@gjj
gjj / SafeMath.sol
Created August 29, 2020 00:25
SafeMath.sol
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
{
"version": "https://schema.openattestation.com/2.0/schema.json",
"data": {
"recipient": {
"firstName": "2ed03ee6-3613-4b7c-934d-071b338bd26b:string:Steven",
"lastName": "bfa38859-d8e6-46c9-bfb2-110b6dadcf0f:string:Koh"
},
"programme": {
"name": "2d3f0193-3686-4429-9779-b5f70ba95f52:string:GovTech Internship Programme",
"startDate": "effc3867-ed5a-472b-9402-bdb2ef7ba84f:string:1 Jan 20",
@gjj
gjj / 1.sql
Created October 26, 2020 15:09
INSERT INTO emp VALUES ('Raj',10000,32112322,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Jack',10001,32112323,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Jill',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Hickory',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Peter',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Arul',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Murugan',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Arul',10002,32112324,'[email protected]','www.google.com');
INSERT INTO emp VALUES ('Vijay',10002,32112324,'[email protected]','www.google.com');
4655,product interest rate offered by
5954,Citibank is quite higher when
9245,compared to the interest rate
7071,offered by the EOB bank
7598,because the Citibank sees the
1758,gills zero percent processing charges,
2075,but they charge 5% interest
9300,rate on a monthly basis
8737,which is a flat interest
7228,rate for the next for
@gjj
gjj / gist:05e9e86501188a59dd99762c710b2a0c
Created October 10, 2023 06:54
Levain Developer Docs
see pics below