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
@abdurrahmanekr
abdurrahmanekr / date-formatter.js
Created March 24, 2017 18:00
Date Formatter Simple
String.prototype.strToDate = function() {
var yil = this.slice(0, 4);
var ay = this.slice(4, 6);
var gun = this.slice(6, 8);
var saat = this.slice(8, 10);
var dakika = this.slice(10, 12);
return new Date(yil + "-" + ay + "-" + gun + " " + saat + ":" + dakika);
};
Date.prototype.dateToStr = function() {
var yil = this.getUTCFullYear();
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-1.js
Last active June 11, 2017 07:22
javascript,react-native,animation,animated
import React, { Component } from 'react';
import {
AppRegistry,
Animated,
Easing,
} from 'react-native';
export default class test extends Component {
constructor(props) {
super(props);
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-2.js
Last active June 11, 2017 07:39 — forked from dabit3/React Native Easings
javascript,react-native,animation,animated
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Easing,
Animated,
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-3.js
Created June 11, 2017 08:19
javascript,react-native,animation,animated Raw
import React, { Component } from 'react';
import {
AppRegistry,
Animated,
Easing,
View,
Text,
} from 'react-native';
export default class test extends Component {
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-4.js
Created June 11, 2017 10:24
javascript,react-native,animation,animated
import React, { Component } from 'react';
import {
AppRegistry,
Animated,
Easing,
View,
Text,
} from 'react-native';
export default class test extends Component {
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-5.js
Created June 11, 2017 12:01
javascript,react-native,animation,animated Raw
import React, { Component } from 'react';
import {
AppRegistry,
Animated,
Easing,
View,
Text,
TouchableHighlight,
} from 'react-native';
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-6.js
Last active June 11, 2017 12:35 — forked from dabit3/Animated.sequence()
javascript,react-native,animation,animated
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Animated
} from 'react-native'
const dizi = []
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-7.js
Last active June 11, 2017 13:42 — forked from dabit3/Animated.stagger()
javascript,react-native,animation,animated
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Animated
} from 'react-native'
const dizi = []
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);
}