This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata https://www.youtube.com/watch?v= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SnapKit | |
class ViewController: UIViewController { | |
lazy var scrollView: UIScrollView = { | |
let view = UIScrollView() | |
view.translatesAutoresizingMaskIntoConstraints = false | |
view.backgroundColor = UIColor.brown | |
return view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Store = { | |
get: function(key) { | |
var value = localStorage.getItem(key); | |
if (value) { | |
try { | |
var value_json = JSON.parse(value); | |
if (typeof value_json === 'object') { | |
return value_json; | |
} else if (typeof value_json === 'number') { | |
return value_json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component, PropTypes} from "react"; | |
import {View, ListView, Text, NetInfo, TouchableHighlight, Image} from "react-native"; | |
import Icon from 'react-native-vector-icons/Ionicons' | |
import GiftedListView from 'react-native-gifted-listview' | |
import GiftedSpinner from 'react-native-gifted-spinner' | |
import Animatable from 'react-native-animatable' | |
import Swipeout from 'react-native-swipeout' |