Skip to content

Instantly share code, notes, and snippets.

View yildiz's full-sized avatar
❤️
in love with JavaScript

Volkan Yıldız yildiz

❤️
in love with JavaScript
View GitHub Profile
@yildiz
yildiz / meta-tags.md
Created October 9, 2016 14:34 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@yildiz
yildiz / storage.js
Created March 4, 2018 12:34 — forked from rohozhnikoff/storage.js
[react-native] wrapped AsyncStorage with JSON support
import { AsyncStorage } from 'react-native';
const JSONAsyncStorage = Object.assign({}, AsyncStorage, {
getItem() {
return AsyncStorage.getItem.apply(null, arguments).then((res) => JSON.parse(res));
},
setItem(key, value) {
return AsyncStorage.setItem(key, JSON.stringify(value))
}
});
@yildiz
yildiz / React Native zIndex Example
Created December 26, 2018 13:13
React Native zIndex Example
import React, {Component} from 'react';
import {StyleSheet, Text, View, Dimensions } from 'react-native';
export default class App extends Component {
render() {
return (
<View style={styles.wrapper}>
<View style={styles.back}>
<View style={{ backgroundColor: "#2156E9", flex: 1}}></View>
<View style={{ backgroundColor: "#fff", flex: 2}}></View>
@yildiz
yildiz / ListItem.js
Created January 28, 2019 14:48 — forked from furkancelik/ListItem.js
React Native Animation Menu
import React, { Component } from "react";
import { Dimensions, Animated, Text, View } from "react-native";
const { height, width } = Dimensions.get("window");
export default class ListItem extends Component {
constructor(props) {
super(props);
this.show = new Animated.Value(0);
}
componentDidMount() {
@yildiz
yildiz / App.js
Last active January 30, 2019 02:27
Kırmızı top sayacı
import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableOpacity, Button } from 'react-native';
export default class App extends Component {
constructor(props) {
super(props)
this.state = {
sayi: 0
}
@yildiz
yildiz / Home.js
Created February 21, 2019 17:54
Currency App
import React, { Component } from 'react';
import { Text, View, TextInput, Dimensions, TouchableOpacity } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
import { connect } from 'react-redux';
import LinearGradient from 'react-native-linear-gradient';
import { Header } from '../components/Header';
const { width, height } = Dimensions.get('screen');
@yildiz
yildiz / mask.js
Created March 19, 2019 14:03 — forked from meftunca/mask.js
Javascript number mask
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++));
@yildiz
yildiz / CDN.md
Created July 7, 2019 15:02 — forked from vinkla/CDN.md
A guide on how to upload images to GitHub's CDN through issue and pull request text fields.

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the button New Issue. You'll now see both a title and a description field.

  3. Drag-and-drop an image on to the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like.

-----------------------------------------------------------------------------
Paket Durumu | Sürüm Durumu | Kural | Örnek Versiyon +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Paketin Yayınlanması | Yeni Paket | 1.0.0 ile Başlar | 1.0.0 +
----------------------------------------------------------------------------+
Geriye Dönük Hataların | Patch | 3. sayıyı arttır | 1.0.1 +
Düzeltilmesi +
----------------------------------------------------------------------------+
Geriye Dönük Uyumlu | Minor Release | 2. sayıyı arrtır | 1.1.0 +
Yeni Özellikler | ve sondaki sayıyı +
@yildiz
yildiz / add-wordpress-settings-page.php
Created July 28, 2019 14:27 — forked from DavidWells/add-wordpress-settings-page.php
WordPress :: Add Settings Page with All Fields
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters