Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Gkiokan / pimp-my-korg-logo.svg
Last active June 2, 2023 09:28
Pimp my KORG SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gkiokan
Gkiokan / USERDK.pcg
Created April 17, 2023 23:56
dummy pcg
�V KORFhDRK(prcisson) Halay Perc Tati mixkit 2 Resat kit 5 Yeni Perc 2012 RMX Drums
House kit Ti2 House kit Ti1 Yeni Perc 2013* Tati mixkit 3 Tati mixkit 2 Tati mixkit 1 Stadium kit Ti Stadium kit2 Ti Session kit2 Ti Session kit2 Ti House kit Yeni Ti SFX AY KiT deneme TATi KIT
RockDrummer v2 Funk Drummer irt Funk Drummer irt RockDrummer v2 Tati`s worldPerc Tati`s Perc 01 2 @ Tati Perc 2014 @Tati Perc Tati mixkit 3 ~House kit Yeni Funk Drummer irt |TSM kit !!SE!! Tati mixkit 1 }House kit Yeni {Ay Kit ORJ zSession kit2 Ti xHouse kit Yeni yAY KiT deneme pStadium kit Ti qAY KiT deneme NM Darbuka Kit EMO-
@Gkiokan
Gkiokan / ProxyController.php
Last active March 14, 2023 17:18
Image Proxy Controller
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Intervention\Image\Facades\Image;
use Storage;
use Http;
use Cache;
@Gkiokan
Gkiokan / STYParser.js
Created March 8, 2023 16:25
KORG PA Set STY Parser
const fs = require('fs');
const Parser = require('binary-parser').Parser;
// Define the structure of the STY file
const StyParser = new Parser()
.endianess('little')
.uint32('magic')
.uint32('version')
.uint32('size')
.string('name', { length: 32, encoding: 'ascii' })
@Gkiokan
Gkiokan / Paginate.js
Created February 6, 2023 13:40
Vue Paginate Mixing Component
export default {
data(){ return {
currentPage: 1,
perPage: 50,
data: null,
}},
computed: {
items(){
return this.data ? this.data.data : []
@Gkiokan
Gkiokan / IRCClient.php
Created July 8, 2022 21:17
IRC Client PHP
<?php
namespace App\Http\Controllers\WCX;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class IRCClient extends Controller
{
protected $socket;
@Gkiokan
Gkiokan / tt1375666.json
Created June 30, 2022 16:49
imdb.test.json
{
"id": "tt1375666",
"title": "Inception",
"originalTitle": "",
"fullTitle": "Inception (2010)",
"type": "Movie",
"year": "2010",
"image": "https://imdb-api.com/images/original/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_Ratio0.6751_AL_.jpg",
"releaseDate": "2010-07-16",
"runtimeMins": "148",
@Gkiokan
Gkiokan / multi-domain-router.js
Created January 16, 2022 10:47
Multiple Domain Routing with Vue-Router
const host = window.location.host;
const parts = host.split('.');
const domainLength = 3; // route1.example.com => domain length = 3
const router = () => {
let routes;
if (parts.length === (domainLength - 1) || parts[0] === 'www') {
routes = index;
} else if (parts[0] === 'route1') {
routes = route1;
@Gkiokan
Gkiokan / TC_withdraw.js
Created June 7, 2021 08:16
TronConomy withdraw
let withdrawalAmount = 10
let fetchOptions = {
headers: {
'Authorization': 'bearer '+window.localStorage["sessionToken"],
'Content-Type': 'application/json'
},
body: JSON.stringify({ amount: window.tronWeb.toSun(withdrawalAmount) }),
method: 'POST'
};
@Gkiokan
Gkiokan / TronConomySC.js
Last active January 16, 2022 10:48
TronConomy SC
//pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {