Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blisssan on github.
  • I am blisssan (https://keybase.io/blisssan) on keybase.
  • I have a public key ASAoPAw2cupePdzHPt6DZG-Z08hhm0YqZ2-x8xTuzNF_3Ao

To claim this, I am signing this object:

@blisssan
blisssan / GildedRoseTest.php
Created January 16, 2020 12:52
PHPUnit Testcases for Laracast Gilded Rose Kata
<?php
namespace Tests;
use PHPUnit\Framework\TestCase;
use App\GildedRose;
class GildedRoseTest extends TestCase
{
// normal items
cc -I/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include bcrypt_port.c bcrypt.o blowfish.o -L/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/lib -lpthread -o ../priv/bcrypt
bcrypt_port.c:105:14: warning: 'erl_format' is deprecated [-Wdeprecated-declarations]
result = erl_format("{~i, ~w, ~s}", cmd, pid, res);
^
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/erl_interface.h:407:32: note: 'erl_format' has been explicitly marked deprecated
here
ETERM *erl_format(char*, ... ) EI_DEPRECATED_ATTR;
^
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/ei.h:64:43: note: expanded from macro 'EI_DEPRECATED_ATTR'
#define EI_DEPRECATED_ATTR __attribute__((EI_DEPRECATED_ATTR_NAME))
import 'dart:io';
Socket? socket;
void main() {
Socket.connect("localhost", 4567).then((Socket sock) {
socket = sock;
if (socket == null) {
throw Exception("Invalid Socket");
}
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, PaymentResultDelegate,WKNavigationDelegate {
var flutterResult: FlutterResult?
override func application(
_ application: UIApplication,
//
// DetailViewController.swift
// SDKSampleAppSwift
//
// Created by Muhammad Syafiq bin Mastor on 07/03/2019.
// Copyright © 2019 iPay88. All rights reserved.
//
import UIKit
@JsonSerializable(explicitToJson: true)
class Outlet {
int id;
String name;
String code;
String address;
@JsonKey(name: 'mobile_logo')
String logo;
@JsonKey(name: 'company_id')
import 'package:dio/dio.dart';
Future<dynamic> dioPostFormData(
String url, {
Map<String, String> headers,
Map<String, dynamic> body,
String method = 'POST',
Map<String, Uint8List> files,
}) async {
<?php
namespace App\Services;
use Illuminate\Support\Facades\Log;
use Twilio\Rest\Client;
class SmsService
{
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:charcode/ascii.dart';
class PaymentTerminalService {
static var ascii = AsciiCodec();
String ip = '127.0.0.1';
int port = 4567;