Loading
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
import * as firebase from 'firebase' | |
import 'firebase/firestore'; | |
class FireBase { | |
constructor() { | |
let config = { | |
apiKey: "AIzaSyAO8BB0W6mXDr3ihvkMn-uJjopgfsf_qow", | |
authDomain: "cherishly-412dd.firebaseapp.com", | |
databaseURL: "https://cherishly-412dd.firebaseio.com", | |
projectId: "cherishly-412dd", |
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
// Example enum Material | |
pub enum Material { | |
Grass, | |
Sand, | |
Rock, | |
Water, | |
} | |
// match_prop macro | |
macro_rules! match_prop { |
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
extern crate mqttc; | |
extern crate netopt; | |
extern crate ws; | |
use mqttc::{PubOpt, PubSub}; | |
use std::{thread, time}; | |
static USERNAME: &'static str = ""; | |
static PASSWORD: &'static str = ""; |
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 ReactDOM from 'react-dom' | |
export default (Component, tagname) => { | |
class Binder extends HTMLElement { | |
connectedCallback() { | |
const mountPoint = document.createElement('div'); | |
this.attachShadow({ mode: 'open' }).appendChild(mountPoint); |
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
go template example |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/AsynkronIT/protoactor-go/actor" | |
) | |
func main() { |
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
package main | |
import "fmt" | |
import "bytes" | |
import "encoding/gob" | |
import "encoding/hex" | |
import "github.com/AsynkronIT/protoactor-go/actor" | |
type MyActor struct { | |
CallCount int |
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
package main | |
import "fmt" | |
import "log" | |
import "encoding/gob" | |
import "bytes" | |
type Talkable interface { | |
Talk() | |
} |
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 { spec, types, define, abstract, Api } from "spectacles"; | |
spec(module, "elements").ensure("./models/element"); | |
abstract` | |
This is a module used for elements | |
`; | |
// Definitions | |
define.submodule("constants", "./constants")` |
NewerOlder