Skip to content

Instantly share code, notes, and snippets.

View vaxxis's full-sized avatar
🎯
Focusing

Vassi vaxxis

🎯
Focusing
View GitHub Profile
@vaxxis
vaxxis / AnimateNumber.js
Created September 23, 2016 13:28
React Native Animate Number
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import Timer from 'react-timer-mixin';
const HALF_RAD = Math.PI/2
export default class AnimateNumber extends Component {
props : {
countBy? : ?number,
<?php
function is_ssl() {
if ( isset($_SERVER['HTTPS']) ) {
if ( 'on' == strtolower($_SERVER['HTTPS']) )
return true;
if ( '1' == $_SERVER['HTTPS'] )
return true;
} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
return true;
@vaxxis
vaxxis / bling.js
Last active August 29, 2015 14:23 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document)
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn)
}
NodeList.prototype.__proto__ = Array.prototype