This file contains hidden or 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 bash | |
| set -euo pipefail | |
| # summarize-youtube.sh | |
| # Usage: ./summarize-youtube.sh "https://www.youtube.com/watch?v=A9BiNPf34Z4" [lang] | |
| # Requires: yt-dlp, jq, llm | |
| # Optional: set COOKIES_FROM_BROWSER=chrome (or your browser) if the video needs auth/age check. | |
| if [[ $# -lt 1 ]]; then | |
| echo "Usage: $0 <youtube-url> [lang]" >&2 |
This file contains hidden or 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
| module.exports = function(callback) { | |
| require('child_process').exec('./cursor-position.sh', function(error, stdout, stderr){ | |
| callback(error, JSON.parse(stdout)); | |
| }); | |
| } |
This file contains hidden or 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 baseImponible = process.argv[2]; | |
| const tramosBaseEstado = [ | |
| { hasta: 0, porcentaje: 0 }, | |
| { hasta: 12450, porcentaje: 9.5 }, | |
| { hasta: 20200, porcentaje: 12 }, | |
| { hasta: 35200, porcentaje: 15 }, | |
| { hasta: 60000, porcentaje: 18.5 }, | |
| { hasta: 300000, porcentaje: 18.5 }, | |
| { hasta: 0000000000, porcentaje: 22.5 }, | |
| ]; |
This file contains hidden or 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 'package:flutter/material.dart'; | |
| import 'dart:async'; | |
| import 'package:permission_handler/permission_handler.dart'; | |
| import 'package:agora_rtc_engine/agora_rtc_engine.dart'; | |
| class Audience extends StatefulWidget { | |
| @override | |
| _AudienceState createState() => _AudienceState(); | |
| } |
This file contains hidden or 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
| { | |
| "name": "xxxxx", | |
| "version": "0.1.0", | |
| "private": true, | |
| "main": "public/electron.js", | |
| "homepage": "./", | |
| "dependencies": { | |
| "@material-ui/core": "^4.11.0", | |
| "@material-ui/icons": "^4.9.1", | |
| "@testing-library/jest-dom": "^5.11.0", |
This file contains hidden or 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
| /* eslint-disable global-require */ | |
| /* eslint-disable no-undef */ | |
| import { compose } from "redux"; | |
| import persistState from "redux-localstorage"; | |
| import { StoreEnhancer } from "redux"; | |
| import { routerMiddleware } from "connected-react-router"; | |
| import { createBrowserHistory } from "history"; | |
| import { createEpicMiddleware } from "redux-observable"; | |
| import { createStore, applyMiddleware } from "redux"; | |
| import rootEpic from "./epics"; |
This file contains hidden or 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 { submitSignUpFormEpic } from "../epics"; | |
| import { TestScheduler } from "rxjs/testing"; | |
| import { FirebaseUser } from "../logic/User"; | |
| import { submitSignUpForm } from "../actions/authActions"; | |
| import { of, from } from "rxjs"; | |
| import { ActionsObservable, StateObservable } from "redux-observable"; | |
| import { Observable } from "redux"; | |
| import { map } from "rxjs/operators"; | |
| import { push } from "connected-react-router"; | |
| var fs = require("fs"); |
This file contains hidden or 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
| // | |
| // ContentView.swift | |
| // | |
| import AVFoundation | |
| import SwiftUI | |
| struct Track: Identifiable { | |
| var id = UUID() | |
| var title: String |
This file contains hidden or 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, | |
| TouchableHighlight, | |
| Text, | |
| SafeAreaView, | |
| Alert | |
| } from "react-native"; |
This file contains hidden or 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 { withStyles, WithStyles, createStyles } from '@material-ui/core/styles'; | |
| import Typography from '@material-ui/core/Typography'; | |
| const styles = () => | |
| createStyles({ | |
| root: { | |
| padding: 5, | |
| marginTop: 20, | |
| }, |
NewerOlder