Skip to content

Instantly share code, notes, and snippets.

View kukiron's full-sized avatar
🚀
I do stuff...

Kafil Uddin Kiron kukiron

🚀
I do stuff...
View GitHub Profile
import execute from '../execute';
import type { AcquiredCreation, AcquiredCreationInput } from '../types';
export default async (
acquiredCreationInputs: Array<AcquiredCreationInput>,
): Promise<Array<AcquiredCreation>> => {
const queryParameters = acquiredCreationInputs
.map((_, index) => `$creationId${index}: ID!, $type${index}: String!`).join(', ');
const parameters = acquiredCreationInputs.reduce(
@kukiron
kukiron / mapOrder.js
Created June 14, 2019 04:02
Order an array of objects based on another array order
const mapOrder = (array, order, key) => array
.sort((a, b) => order.indexOf(a[key]) > order.indexOf(b[key]) ? 1 : -1);
/**
* Example:
*/
const item_array = [
{ id: 2, label: 'Two' },
{ id: 3, label: 'Three' },
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
TITLEPREFIX=$MSYSTEM
fi
if test -f ~/.config/git/git-prompt.sh
then
. ~/.config/git/git-prompt.sh
@kukiron
kukiron / .hyper.js
Last active November 17, 2019 07:24
Latest Hyper setup & VSCode styles
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@kukiron
kukiron / git-prompt_old.sh
Last active February 17, 2019 13:41
Git Bash Prompt for Windows
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
TITLEPREFIX=$MSYSTEM
fi
if test -f ~/.config/git/git-prompt.sh
then
. ~/.config/git/git-prompt.sh
@kukiron
kukiron / vscode-settings.json
Last active March 24, 2020 14:02
Settings of VSCode with Sublime Material Dark Theme
{
"auto-rename-tag.activationOnLanguage": [
"html",
"xml",
"php",
"javascript",
"javascriptreact"
],
/** BEAUTIFY **/
@kukiron
kukiron / .hyper.js
Created June 25, 2018 04:14
Settings & other plugin customization files for Hyper
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@kukiron
kukiron / ConEmu.xml
Last active June 24, 2018 10:07
Customizing Cmder
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2018-06-23 05:35:48" build="161206">
<value name="ColorTable00" type="dword" data="00191919"/>
<value name="ColorTable01" type="dword" data="00ee0000"/>
<value name="ColorTable02" type="dword" data="0000cd00"/>
<value name="ColorTable03" type="dword" data="00cdcd00"/>
<value name="ColorTable04" type="dword" data="000000cd"/>
<value name="ColorTable05" type="dword" data="00cd00cd"/>
@kukiron
kukiron / code.settings.json
Last active July 6, 2018 02:32
VSCodeSettings for Angular Projects
{
"auto-rename-tag.activationOnLanguage": [
"html",
"xml",
"php",
"javascript",
"javascriptreact"
],
/** BEAUTIFY **/
"beautify.language": {
@kukiron
kukiron / OneDark+
Last active May 21, 2018 05:16
Customized OneDark+ Sublime Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>One Dark+</string>
<key>author</key>
<string>Josh Peng</string>
<key>settings</key>
<array>