This file contains 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
var Scraper = require('./scraper.js'); | |
var scraper = new Scraper({ | |
baseUrl: 'https://medium.com' | |
}); | |
scraper.scrape('/@ocittwo', function(err, $) { | |
if (err) { | |
console.log(err); | |
return; |
This file contains 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
var cheerio = require('cheerio'); | |
var extend = require('extend'); | |
var request = require('request'); | |
module.exports = function(userOptions) { | |
var options = extend({ | |
method: 'GET', | |
baseUrl: '', | |
gzip: true, | |
forever: true, |
This file contains 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
imageView = (ImageView) findViewById(R.id.imageView); | |
Glide.with(this) | |
.asBitmap() | |
.load("https://avatars0.githubusercontent.com/u/11156973?v=4&s=100") | |
.into(new RoundedImageVIewTarget(imageView)); |
This file contains 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 android.graphics.Bitmap; | |
import android.support.annotation.Nullable; | |
import android.support.v4.graphics.drawable.RoundedBitmapDrawable; | |
import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory; | |
import android.widget.ImageView; | |
import com.bumptech.glide.request.target.ImageViewTarget; | |
/** |
This file contains 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
rm -rfv ~/Library/Application\ Support/AndroidStudio* | |
rm -rfv ~/Library/Preferences/AndroidStudio* | |
rm -rfv ~/Library/Caches/AndroidStudio* | |
rm -rfv ~/Library/Logs/AndroidStudio* | |
rm -rfv ~/.AndroidStudio* |
This file contains 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} from 'react' | |
import { | |
View, | |
StyleSheet, | |
Dimensions, | |
ListView, | |
Image, Text | |
} from 'react-native' |
This file contains 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 from 'react' | |
import { | |
View, | |
Text, | |
AsyncStorage, | |
ListView, | |
Image, | |
StyleSheet, | |
Dimensions, ActivityIndicator | |
} from 'react-native' |
This file contains 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 ApolloClient, { createBatchingNetworkInterface } from 'apollo-client'; | |
const networkInterface = createBatchingNetworkInterface({ | |
uri: 'Url hosted', | |
batchInterval: 10, | |
opts: { | |
// Options to pass along to `fetch` | |
} | |
}); | |
This file contains 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 isEmpty = (value) => value === undefined || value === null || (typeof value === "object" && Object.keys(value).length === 0) || (typeof value === "string" && value.trim().length === 0) |
This file contains 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
<?php | |
return [ | |
'prefix' => 'graphql', | |
'routes' => '{graphql_schema?}', | |
'controllers' => \Folklore\GraphQL\GraphQLController::class.'@query', | |
'variables_input_name' => 'variables', | |
'middleware' => [], | |
'headers' => [], |