Skip to content

Instantly share code, notes, and snippets.

View berkaytheunicorn's full-sized avatar

Berkay Sargın berkaytheunicorn

View GitHub Profile
import React from "react";
import { useIntersect } from "../../../utils/hooks/useIntersect";
import { useUI } from "../../_UI";
import { BoxWrapper, LineOverlay } from "./styled";
export default props => {
const { style, children, $appearance } = props;
@berkaytheunicorn
berkaytheunicorn / countries.js
Created June 28, 2018 12:05
countries as object with name, flag, currency and dial code
export default {
AF: { name: "Afghanistan", flag: "🇦🇫", code: "+93", currency: "AFN" },
AX: { name: "Åland Islands", flag: "🇦🇽", code: "+358", currency: "EUR" },
AL: { name: "Albania", flag: "🇦🇱", code: "+355", currency: "ALL" },
DZ: { name: "Algeria", flag: "🇩🇿", code: "+213", currency: "DZD" },
AS: { name: "American Samoa", flag: "🇦🇸", code: "+1684", currency: "USD" },
AD: { name: "Andorra", flag: "🇦🇩", code: "+376", currency: "EUR" },
AO: { name: "Angola", flag: "🇦🇴", code: "+244", currency: "AOA" },
AI: { name: "Anguilla", flag: "🇦🇮", code: "+1264", currency: "XCD" },
AQ: { name: "Antarctica", flag: "🇦🇶", code: "+672" },
@berkaytheunicorn
berkaytheunicorn / Video.coffee
Created January 18, 2017 08:37
React Video Component
React = require "react"
{video,source} = React.DOM
View = React.createClass
displayName: "Video"
shouldComponentUpdate:(nextProps,nextState)->
# unless @refs.video.readyState is 4
# return true
@berkaytheunicorn
berkaytheunicorn / card.coffee
Last active May 3, 2020 06:37
Easy way to write React with coffee. (If you don't want to give up from jade.)
React = require “react”
$$ = React.DOM
Loader = require("./loader")
Card = React.createClass
getInitialState:()->
states =
loading:true