Skip to content

Instantly share code, notes, and snippets.

View abdurrahmanekr's full-sized avatar
🇹🇷
The mind is superior to the mind.

Avare Kodcu abdurrahmanekr

🇹🇷
The mind is superior to the mind.
View GitHub Profile
View subract.js
/*
* Question:
* Subtract given two positive integer as string without using `atoi` or number parser `parseInt, parseFloat` and return signed integer as string.
* Data types:
* - function subtract(num1: unsigned integer as String, num2: unsigned integer as string) : signed integer as string
* Rules:
* - Don't use atoi or parseInt for inputs directly
* Duration:
* - 45 minutes
* Examples:
@abdurrahmanekr
abdurrahmanekr / ToCapitalizeCase.java
Last active January 22, 2019 10:01
ToCapitalizeCase.java
View ToCapitalizeCase.java
//*******************************************************************
// Welcome to CompileJava!
// If you experience any issues, please contact us ('More Info') -->
// Also, sorry that the "Paste" feature no longer works! GitHub broke
// this (so we'll switch to a new provider): https://blog.github.com\
// /2018-02-18-deprecation-notice-removing-anonymous-gist-creation/
//*******************************************************************
import java.lang.Math; // headers MUST be above the first class
import java.util.Locale;
@abdurrahmanekr
abdurrahmanekr / promise.js
Created January 2, 2018 19:00
promise ile ilgili bir soru
View promise.js
// En basit şekilde cache mantığı ile çalışan bir vCard servisi
// get methodu ile servisten aldığı değeri vCards'a ekliyor
// o listede de varsa geri döndürüyor
class vCard {
constructor() {
// hazırda inmiş vCard listesi
this.vCards = [];
}
get(id) {
@abdurrahmanekr
abdurrahmanekr / enjoyable-git.md
Created November 1, 2017 14:33
enjoyable git commit messages
View enjoyable-git.md

༼ つ ◕_◕ ༽つ

@abdurrahmanekr
abdurrahmanekr / e-r-a.sh
Last active November 4, 2017 08:54
Electron React app install
View e-r-a.sh
git clone https://github.com/abdurrahmanekr/electron-react-example.git
cd electron-react-example
npm i
npm start
@abdurrahmanekr
abdurrahmanekr / strophe-tester.html
Last active October 25, 2017 11:39
strophe-tester
View strophe-tester.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src='https://cdnjs.cloudflare.com/ajax/libs/strophe.js/1.2.14/strophe.js'></script>
<script>
var config = {
uri: 'http://atomic.detaysoft.com/http-bind/'
};
View gist:8ec79b04226af6da78fc4105152b9e07
function versionCompare(v1, v2, options) {
var lexicographical = options && options.lexicographical,
zeroExtend = options && options.zeroExtend,
v1parts = v1.split('.'),
v2parts = v2.split('.');
function isValidPart(x) {
return (lexicographical ? /^\d+[A-Za-z]*$/ : /^\d+$/).test(x);
}
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-7.js
Last active June 11, 2017 13:42 — forked from dabit3/Animated.stagger()
javascript,react-native,animation,animated
View react-native-animasyonlar-7.js
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Animated
} from 'react-native'
const dizi = []