I hereby claim:
-
I am wzulfikar on github.
-
I am wzulfikar (https://keybase.io/wzulfikar) on keybase.
-
I have a public key ASDwimH7OPEvqzHFVBGnJe6lWpzCz_sskDdNkffx8G1JBwo
-- | |
-- | |
-- MySQL tables used to run the Editor examples. | |
-- | |
-- For more information about how the client and server-sides interact, please | |
-- refer to the Editor documentation: http://editor.datatables.net/manual . | |
-- | |
-- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
/*!40103 SET TIME_ZONE='+00:00' */; | |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
cd ~ | |
sudo curl -sS https://getcomposer.org/installer | sudo php | |
sudo mv composer.phar /usr/local/bin/composer | |
sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
composer --version |
<?php | |
/** | |
* fetch profile of given fb's user id. fields are optional. | |
*/ | |
function getFbProfile($userId, array $fields = []) | |
{ | |
$ACCESSS_TOKEN = 'YOUR_TOKEN_HERE'; | |
$BASE_URL = 'https://graph.facebook.com/v2.6'; | |
// fetch default fields if no fields passed |
/** | |
* Wed, 15 Nov 2017 at 0:56:13 MYT | |
* "Using TypeScript to create order summary." | |
* | |
* The purpose of this snippet is to demonstrate the | |
* use of TypeScript in our code. | |
* You can run this code online here: | |
* https://www.typescriptlang.org/play/ | |
* | |
* PS: |
/** | |
* Using parallel function and thread in Scala. | |
* | |
* Run in scastie: https://scastie.scala-lang.org | |
* | |
*/ | |
// Higher-order function that displays | |
// time elapsed to execute any given function | |
def timer (taskId : String, f: () => Unit) = { |
const secrets = require('secrets.js-grempe') | |
const shamir = { | |
create: (plainText, totalShares, threshold) => { | |
// convert the text into a hex string | |
var pwHex = secrets.str2hex(passphrase); // => hex string | |
// split into 2 shares with a threshold of 2. | |
// 1 share will be sent to backend and stored there | |
// and another share will be kept by the user. |
<script> | |
/** | |
* Super simple WYSIWYG editor using Bootstrap. | |
* https://github.com/summernote/summernote | |
*/ | |
$(document).ready(function() { | |
// init summernote with height: 200px | |
$('.summernote').summernote({ | |
height: 200, |
I hereby claim:
I am wzulfikar on github.
I am wzulfikar (https://keybase.io/wzulfikar) on keybase.
I have a public key ASDwimH7OPEvqzHFVBGnJe6lWpzCz_sskDdNkffx8G1JBwo