Skip to content

Instantly share code, notes, and snippets.

View firatkucuk's full-sized avatar
🍉

Fırat Küçük firatkucuk

🍉
View GitHub Profile
@firatkucuk
firatkucuk / BasHarflerBuyuk.txt
Created August 2, 2016 19:42
Yalnızca baş harfleri büyük yapmak için OpenOffice formülü
=BİRLEŞTİR(BÜYÜKHARF(PARÇAAL(D1;1;1));PARÇAAL(D1;2;UZUNLUK(D1)-1))
import {AbstractControl} from '@angular/forms';
import {DbService} from '../service/db.service';
import {isArray} from 'util';
declare const $: any;
export class TagInput {
private _inputItem: any;
@firatkucuk
firatkucuk / decimal-to-hex.java
Created June 12, 2017 18:11
Try to convert arbitrary length string decimal to string hexadecimal
public class Decimal2Hex {
private static String[] HEX = new String[]{
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"
};
public static String convert(final String numberText) {
final Object[] result = divideTo16(numberText);
final String quotient = (String) result[0];
@firatkucuk
firatkucuk / rest-endpoint-standards.md
Created July 5, 2019 09:58
REST Endpoint standards for single page applications.

Backend:

GET     /api/some-resource/{uuid}               Get Detail of single resource
POST    /api/some-resource                      Create resource with incoming data
PUT     /api/some-resource/{uuid}               Update resource with incoming data
DELETE  /api/some-resource/{uuid}               Delete resource
GET     /api/some-resources                     List all resources with post data

XXXX    /api/some-resource/{uuid}/some-action   Perform some action for that specified resource
@firatkucuk
firatkucuk / Dockerfile
Created February 11, 2022 18:20
containers101
FROM node:10
ADD server.js server.js
EXPOSE 8080
CMD [ "node", "server.js" ]
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active May 1, 2024 04:17
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App