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
require 'faraday' | |
require 'json' | |
class Strains | |
def self.all_strains | |
response = Faraday.get("http://www.leafly.com/api/strains") | |
strains_json = JSON.parse(response.body) | |
strains_json.collect {|strain| new (strain)} | |
end |
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 | |
use Facebook\FacebookSession; | |
use Facebook\FacebookRequest; | |
use Facebook\GraphUser; | |
use Facebook\FacebookRequestException; | |
FacebookSession::setDefaultApplication('YOUR_APP_ID','YOUR_APP_SECRET'); | |
// Use one of the helper classes to get a FacebookSession object. | |
// FacebookRedirectLoginHelper |
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 | |
// Facebook PHP SDK v4.0.8 | |
// path of these files have changes | |
require_once( 'Facebook/HttpClients/FacebookHttpable.php' ); | |
require_once( 'Facebook/HttpClients/FacebookCurl.php' ); | |
require_once( 'Facebook/HttpClients/FacebookCurlHttpClient.php' ); | |
require_once( 'Facebook/Entities/AccessToken.php' ); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ethereum Token Balance Explorer</title> | |
<script src="https://cdn.jsdelivr.net/npm/web3@0.20.1/dist/web3.min.js"></script> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> | |
</head> | |
<body> | |
<h1>Ethereum Token Balance Explorer</h1> |
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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
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
// 🤫The following code is experimental and might break in the future! | |
// Don't use it if you are using some kind of side-effect patterns like: Helmet, GraphQL or react-side-effect. | |
import { useRouter } from 'next/router' | |
function Home() { | |
const { | |
// `String` of the actual path (including the query) shows in the browser | |
asPath, | |
// `String` Current route |