In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### -------------------------------------------------------------------------------------------------- | |
# | |
# The code below has been adotped and modified from https://stackoverflow.com/a/68022221/189292 | |
# This allows the project to increment build numbers on a per-target basis, instead of updating the entire | |
# project for all targets when using the standard `increment_build_number` lane. | |
# | |
### -------------------------------------------------------------------------------------------------- | |
# Sets the "BUILD" number for a target | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>AdjustWindowForFontSizeChange</key> | |
<true/> | |
<key>AlternateMouseScroll</key> | |
<true/> | |
<key>AppleAntiAliasingThreshold</key> | |
<integer>1</integer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"title":"EĞİTİM","children":[{"title":"Genel Ders Eğitim Desteği","children":[{"title":"İlköğretim","children":[]},{"title":"Ortaöğretim","children":[]},{"title":"Lise Hazırlık","children":[]},{"title":"Lise Eğitim","children":[]},{"title":"Üniversite Hazırlık","children":[]},{"title":"Üniversite","children":[]},{"title":"Yüksel Lisans","children":[]}]},{"title":"Branş Ders Eğitim Desteği","children":[{"title":"Matematik","children":[]},{"title":"Fen","children":[]},{"title":"Türkçe","children":[]},{"title":"Sosyal","children":[]},{"title":"Fizik","children":[]},{"title":"Kimya","children":[]},{"title":"Biyoloji","children":[]},{"title":"Diğer","children":[]}]},{"title":"Dil Eğitim Desteği","children":[{"title":"İngilizce","children":[]},{"title":"Arapça","children":[]},{"title":"Almanca","children":[]},{"title":"Fransızca","children":[]},{"title":"İtalyanca","children":[]},{"title":"Rusça","children":[]},{"title":"Çince","children":[]},{"title":"Japonca","children":[]},{"title":"Diğer","children":[]}]},{"t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
find ~/Documents/Projeler/$1/node_modules -type f -name '*.iml' | |
echo "IML uzantılı dosyalar silinecek." | |
echo "Silmek istediğinize emin misiniz? [Y]/[N]" | |
read ans | |
if [[ $ans == "Y" ]] || [[ $ans == "y" ]]; then | |
echo "Silme işlemi başlatıldı" | |
find ~/Documents/Projeler/$1/node_modules -type f -name '*.iml' -delete | |
echo "Başarıyla silindi..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flavorPathSegment = "" | |
android.productFlavors.all { flavor -> | |
if (targetName.toLowerCase().contains(flavor.name)) { | |
flavorPathSegment = flavor.name | |
} | |
} | |
doLast { | |
def moveFunc = { resSuffix -> | |
File originalDir = file("$buildDir/generated/res/react/${flavorPathSegment}release/drawable-${resSuffix}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git config --global credential.helper osxkeychain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from "react"; | |
import { Image } from "react-native"; | |
export default class ScaledImage extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { source: { uri: this.props.uri } }; | |
} | |
componentWillMount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mask = (res = "", regex) => { | |
if (res.replace(/\D+/gim, "").length == 0) return ""; | |
if (res.replace(/\D+/gim, "").length > regex.replace(/\D+/gim, "").length) | |
return res.slice(0, regex.replace(/\[|\]/gim, "").length); | |
let regexNumber = regex.match(/\d+/gim, ""), //sadece sayılar | |
totalLen = res.match(/\d+/gim, "").join("").length, //gelen değerin uzunluğu | |
number = res.match(/\d+/gim, "").join("") + new Array(regexNumber.join("").length - totalLen).fill("_").join(""), | |
len = 0, | |
rlen = 0; | |
let match = regex.replace(/\[\d+\]/gim, (m, k) => m.replace(/\[\d+\]/gim, "$" + rlen++)); |
NewerOlder