Skip to content

Instantly share code, notes, and snippets.

View mehmetcanker's full-sized avatar
🎯
Focusing

Mehmet Canker mehmetcanker

🎯
Focusing
View GitHub Profile
const fs = require('fs');
const xlsx = require('node-xlsx');
const _ = require('lodash');
const fileName = './resource.json';
const file = require(fileName);
const translationFile = xlsx.parse(`${__dirname}/translations.xlsx`);
const epvl = _.find(translationFile, { 'name': 'EP validation'});
async function parseFile(){
const epvlRows = epvl.data;
@mehmetcanker
mehmetcanker / redis_cheatsheet.bash
Created October 31, 2019 10:46 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@mehmetcanker
mehmetcanker / mongodb_shell_commands.md
Created October 31, 2019 10:11 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@mehmetcanker
mehmetcanker / firebase.sh
Created February 28, 2019 09:00 — forked from ademar111190/firebase.sh
A script to send data notifications
#!/bin/bash
# https://github.com/firebase/firebase-tools
# https://firebase.google.com/docs/cloud-messaging/server
DEVICE="<< DEVICE TOKEN >>"
KEY="<< SERVER KEY>>"
JSON="
{
\"to\": \"$DEVICE\",
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}
@mehmetcanker
mehmetcanker / spring-boot-cheatsheet.java
Created September 14, 2017 08:50 — forked from jahe/spring-boot-cheatsheet.java
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
@mehmetcanker
mehmetcanker / 0_reuse_code.js
Created January 22, 2017 16:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mehmetcanker
mehmetcanker / react-native-gitignore
Created April 28, 2016 06:18 — forked from ryantbd/react-native-gitignore
react-native-gitignore
# Most part of this file is created by https://www.gitignore.io
### Node ###
# Logs
logs
*.log
# Runtime data
pids
*.pid