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 bs4 import BeautifulSoup | |
import requests | |
import re | |
import pandas as pd | |
import time | |
topic = 20333 | |
df_all = pd.DataFrame(columns=["Title", "Authors", "Membership_lv", "Merited", "Text", "Datetime", "Original_Poster"]) | |
df = pd.DataFrame(columns=["Title", "Authors", "Membership_lv", "Merited", "Text", "Datetime", "Orginal_Poster"]) |
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
targets: | |
$default: | |
builders: | |
ferry_generator|serializer_builder: | |
enabled: true | |
options: | |
schema: paintracker|./lib/graphql/schema.graphql | |
custom_serializers: | |
- import: 'package:paintracker/graphql/serializers.dart' | |
name: DateTimeSerializer |
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 'package:flutter/material.dart'; | |
import 'package:hexcolor/hexcolor.dart'; | |
import 'package:scimovement/api.dart'; | |
import 'package:scimovement/theme/utils.dart'; | |
class AppColors { | |
final primary = HexColor('#d5454f'); | |
final primaryDark = HexColor('#9d2235'); | |
final white = HexColor('#FFFFFF'); | |
final background = HexColor('#FDFCFC'); |
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, { useEffect, useMemo, useState } from 'react' | |
import { FieldContainer, FieldLabel, TextInput } from '@keystone-ui/fields' | |
import { Button } from '@keystone-ui/button' | |
import { useToasts } from '@keystone-ui/toast' | |
import styled from 'styled-components' | |
import { gql, useMutation } from '@keystone-6/core/admin-ui/apollo' | |
const Container = styled.div` | |
margin: 0 auto; |
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, { useState } from 'react' | |
import { Button } from '@keystone-ui/button' | |
import { AlertDialog } from '@keystone-ui/modals' | |
import { useToasts } from '@keystone-ui/toast' | |
import { FieldContainer } from '@keystone-ui/fields' | |
import { gql, useMutation } from '@keystone-6/core/admin-ui/apollo' | |
import { useRouter } from 'next/router' | |
export const Field = ({ value }: any) => { | |
const [isOpen, setIsOpen] = useState(false) |
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
module.exports = (items, method) => { | |
const results = [] | |
function runMethod(item) { | |
return new Promise((resolve, reject) => { | |
method(item) | |
.then((res) => { | |
results.push(res) | |
resolve(res) | |
}) |
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 const fileToWave = (file) => { | |
return new Promise((resolve) => { | |
const audioContext = new AudioContext() | |
const reader = new FileReader() | |
reader.onload = () => { | |
audioContext.decodeAudioData(reader.result).then(async (buffer) => { | |
var offlineAudioCtx = new OfflineAudioContext({ | |
numberOfChannels: 1, | |
length: 48000 * buffer.duration, | |
sampleRate: 48000, |
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' | |
import './index.css' | |
import App from './App' | |
import * as serviceWorker from './serviceWorker' | |
const WIDTH = 24 | |
const props = {} | |
const grid = [] |
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
function setFakeTime(time) { | |
resetFakeTime() | |
function NewDate() { | |
return new Date.originalDate(...(arguments.length > 0 ? arguments : [time])) | |
} | |
Object.getOwnPropertyNames(Date).forEach(function(name) { | |
if (['name', 'length'].indexOf(name) !== -1) { | |
return | |
} | |
NewDate[name] = Date[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
import React from 'react' | |
import { StyleSheet, Text, View, Animated, TouchableOpacity } from 'react-native' | |
import MatrixMath from 'react-native/Libraries/Utilities/MatrixMath' | |
export default class App extends React.Component { | |
state = { | |
animations: [ | |
new Animated.Value(0), | |
new Animated.Value(0), | |
new Animated.Value(0), |
NewerOlder