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 dotenv from 'dotenv'; | |
import Twitter from 'twitter'; | |
dotenv.config(); | |
const client = new Twitter({ | |
consumer_key: process.env.TWITTER_CONSUMER_KEY, | |
consumer_secret: process.env.TWITTER_CONSUMER_SECRET, | |
access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY, | |
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET, |
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
TWITTER_CONSUMER_KEY=<YOUR API KEY> | |
TWITTER_CONSUMER_SECRET=<YOUR API SECRET> | |
TWITTER_ACCESS_TOKEN_KEY=<YOUR ACCESS TOKEN> | |
TWITTER_ACCESS_TOKEN_SECRET=<YOUR ACCESS SECRET> |
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
TWITTER_CONSUMER_KEY=<YOUR API KEY> | |
TWITTER_CONSUMER_SECRET=<YOUR API SECRET KEY> | |
TWITTER_BEARER_TOKEN=<YOUR BEARER TOKEN> |
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
node_modules | |
.env |
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 Cocoa | |
import SwiftUI | |
@main | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
var statusBar: StatusBarController? | |
var popover = NSPopover.init() | |
func applicationDidFinishLaunching(_ aNotification: Notification) { |
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 AppKit | |
class StatusBarController { | |
private var statusBar: NSStatusBar | |
private var statusItem: NSStatusItem | |
private var popover: NSPopover | |
init(_ popover: NSPopover) { | |
self.popover = popover | |
statusBar = NSStatusBar.init() |
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
console.log("Hello World!"); |
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 { Component, OnInit } from '@angular/core'; | |
import { Brewery } from './brewery.model'; | |
import { BreweryService } from './brewery.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'], | |
}) | |
export class AppComponent implements OnInit { |
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
export interface Brewery { | |
id: number; | |
name: string; | |
brewery_type: string; | |
street: string; | |
address_2: string; | |
address_3: string; | |
city: string; | |
state: string; | |
county_province: string; |
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 { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
import { Brewery } from './brewery.model'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class BreweryService { | |
constructor(private http: HttpClient) {} |
NewerOlder