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 { cn } from "@/lib/cn"; | |
| import { useLayoutEffect } from "react"; | |
| import { useState } from "react"; | |
| import { useRef } from "react"; | |
| export function EndBlur() { | |
| const [showBlur, setShowBlur] = useState(false); | |
| const containerRef = useRef<HTMLDivElement>(null); | |
| useLayoutEffect(() => { |
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
| package dtmf | |
| const ( | |
| DTMF_6 = "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9TPD7nTVO2rbZTTbSfqC8ZGiU6Mh8tqJakKxggU6e6NMGbl7AjFyfNnb40wZyaSRoaLKyYxTzFnaUqGB06nJjTOOehvh8XIdOVnecsU6tBHBgrqpOlTSBJujIaG0GclK4wG03bMBofvJaYvCAaTf80Gi2mlJ1bGR5NxTwfW52UpjAXJlOuPiq6mZa2IBgtzaRJOq6Xm00aHDSsnU1NrJekKhgfQZydTU2um7weGCXBlaBJOrSkPhoaLKeUqz4rvLQsGBxBm5e2LSPF5ycXIbyVm80fH9tJJRgtppSiQRgjW1MmHFuclasqFipbzScltpeYvh0YMNOyKziqlZ1BGB04rqswW6WVqCcXI02eqjrboZjFHRknvJesPv+knzoaHC+klbQ6QaiwKRgeTZmYwS8yruchFyW6lJ3nIy28Ph8YMqSUpjwbL9M8HRznmpauKRg050keJa6VmsUdGjrN5yE6pJSePhgfPrLFKduelKsnFyZbosE0vpuXzR0aLLqbxT68m500GR0yoZjNPsGerSQYH1uYm+c026bnHRgmspSgUylTsjgbGjKhlKs4H03NLxod55mXtiYbTVsvGiatlZzbHBxJ/zIcOqCUojgXIUm+OCPNm5WuJRcq/6w8L7SYmNscGi+6oj5BrZeeMBgeOqSeSVOsmK4hGCPnmKBJSa6e/xw |
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
| /** | |
| * Transforms a stream of bytes (Uint8Array) into 32-bit float arrays (Float32Array). | |
| * | |
| * This transformer is needed to convert audio data from an HTTP response body | |
| * (ReadableStream<Uint8Array>) into the format required by the Web Audio API | |
| * (ReadableStream<Float32Array>). | |
| * | |
| * The transformer buffers incoming bytes until it has enough to create complete | |
| * 32-bit floats (4 bytes each). Any remaining bytes at the end that don't form | |
| * a complete float (1-3 bytes) are discarded to maintain data integrity. |
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
| """Welcome to Pynecone! This file outlines the steps to create a basic app.""" | |
| # Import pynecone. | |
| from datetime import datetime | |
| import pcconfig | |
| import pynecone as pc | |
| from pynecone.base import Base | |
| docs_url = "https://pynecone.io/docs/getting-started/introduction" |
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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "strings" |
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
| class Logger: | |
| """Logger provides logging of table-structured data. | |
| The first column provided must be interpretable as a title. You may provide | |
| a 'formatting function' for each column that formats values corresponding | |
| to that column. | |
| >>> logger = Logger({ | |
| ... 'Film Title': None, | |
| ... 'Running Time': lambda x: '{} hours'.format(round(x, 2)), | |
| ... 'Rating': lambda x: '⭐️' * x, |
This file has been truncated, but you can view the full file.
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
| { | |
| "ph": [[43464000,7.254,6.284],[43465000,7.76,4.791],[43466000,5.999,6.153],[43467000,6.533,5.923],[43468000,6.659,6.566],[43469000,5.991,6.15],[43470000,7.604,6.953],[43471000,5.688,6.285],[43472000,7.783,5.599],[43473000,5.581,6.919],[43474000,6.871,6.505],[43475000,5.569,5.752],[43476000,7.282,6.714],[43477000,6.776,5.981],[43478000,6.559,5.539],[43479000,5.942,7.28],[43480000,7.241,6.155],[43481000,6.703,5.469],[43482000,5.981,6.738],[43483000,6.168,6.327],[43484000,6.659,6.609],[43485000,6.85,7.033],[43486000,5.612,5.037],[43487000,7.521,5.431],[43488000,7.06,5.986],[43489000,6.643,5.534],[43490000,6.67,5.834],[43491000,6.494,6.287],[43492000,6.443,5.866],[43493000,6.599,5.52],[43494000,6.676,6.214],[43495000,6.52,5.497],[43496000,7.01,5.96],[43497000,6.09,6.118],[43498000,6.906,5.913],[43499000,6.233,6.505],[43500000,5.856,6.313],[43501000,6.878,6.191],[43502000,7.261,4.994],[43503000,6.691,6.27],[43504000,7.012,5.951],[43505000,5.588,5.959],[43506000,6.446,6.633],[43507000,7.809,7.084],[43508000,7.0 |
This file has been truncated, but you can view the full file.
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
| Ph Array | |
| 12345 4 | |
| 43464000 7.254 6.284 | |
| 43465000 7.760 4.791 | |
| 43466000 5.999 6.153 | |
| 43467000 6.533 5.923 | |
| 43468000 6.659 6.566 | |
| 43469000 5.991 6.150 | |
| 43470000 7.604 6.953 |
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 bluebird = require('bluebird') | |
| const AylienNewsApi = require('aylien-news-api') | |
| const api = new AylienNewsApi.DefaultApi() | |
| bluebird.promisifyAll(api) | |
| // Configure API authorization | |
| const { app_id: appId, app_key: appKey } = api.apiClient.authentications | |
| appId.apiKey = process.env.AYLIEN_APP_ID |
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
| """ | |
| Program to create an image with pixels corresponding to the Fibonacci series. | |
| (c) 2017 Kabir Goel | |
| Licensed under the terms of the MIT license. | |
| """ | |
| import sys | |
| import argparse | |
| try: | |
| from PIL import Image | |
| except ImportError: |
NewerOlder