Skip to content

Instantly share code, notes, and snippets.

Avatar
🇹🇷
The mind is superior to the mind.

Avare Kodcu abdurrahmanekr

🇹🇷
The mind is superior to the mind.
View GitHub Profile
View date-formatter.js
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 Jun 11, 2017
javascript,react-native,animation,animated
View react-native-animasyonlar-1.js
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 Jun 11, 2017 — forked from dabit3/React Native Easings
javascript,react-native,animation,animated
View react-native-animasyonlar-2.js
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Easing,
Animated,
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-3.js
Created Jun 11, 2017
javascript,react-native,animation,animated Raw
View react-native-animasyonlar-3.js
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 Jun 11, 2017
javascript,react-native,animation,animated
View react-native-animasyonlar-4.js
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 Jun 11, 2017
javascript,react-native,animation,animated Raw
View react-native-animasyonlar-5.js
import React, { Component } from 'react';
import {
AppRegistry,
Animated,
Easing,
View,
Text,
TouchableHighlight,
} from 'react-native';
@abdurrahmanekr
abdurrahmanekr / react-native-animasyonlar-6.js
Last active Jun 11, 2017 — forked from dabit3/Animated.sequence()
javascript,react-native,animation,animated
View react-native-animasyonlar-6.js
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 Jun 11, 2017 — 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 = []
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);
}