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
{ | |
"@context": "http://schema.org", | |
"@type": "Event", | |
"name": "Miami Heat at Philadelphia 76ers - Game 3 (Home Game 1)", | |
"location": { | |
"@type": "Place", | |
"address": { | |
"@type": "PostalAddress", | |
"addressLocality": "Philadelphia", | |
"addressRegion": "PA" |
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 'dart:collection'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
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
class RandomPhoto extends StatelessWidget { | |
final String topic; | |
Map<int, Uri> visitedUrls; | |
RandomPhoto({Key key, this.topic, this.visitedUrls}) : super(key: key); | |
Future<Response> fetchPhoto() async { | |
String url = 'https://source.unsplash.com/random/?$topic'; | |
return Dio().get(url, options: Options(responseType: ResponseType.bytes)); | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import collections | |
from runner.koan import * | |
# Greed is a dice game where you roll up to five dice to accumulate | |
# points. The following "score" function will be used calculate the | |
# score of a single roll of the dice. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from flask import Flask, request | |
from flask_cors import CORS | |
#################################################################################### | |
# config | |
#################################################################################### | |
PORT = 5000 | |
HOST = '127.0.0.1' | |
app = Flask(__name__) |
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
/* condense line spacing on file explorer title list. also avoids character-level word breaks */ | |
.nav-file-title-content, | |
.search-result-file-title, | |
.search-result-file-match { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
line-height: normal !important; | |
word-break: keep-all; | |
} |
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
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix sh: <http://www.w3.org/ns/shacl#> . | |
@prefix schema: <http://schema.org/> . | |
schema:Person a rdfs:Class, sh:NodeShape ; | |
sh:property [ | |
sh:maxCount 1 ; | |
sh:minCount 1 ; |
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
// This regex finds all wikilinks in a string | |
const wikilinkRegExp = /\[\[\s?([^\[\]\|\n\r]+)(\|[^\[\]\|\n\r]+)?\s?\]\]/g; | |
function caselessCompare(a, b) { | |
return a.toLowerCase() === b.toLowerCase(); | |
} | |
var SMALL_WORDS = | |
/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i; | |
var TOKENS = /[^\s:–—-]+|./g; |
OlderNewer