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 sys | |
from youtube_transcript_api import YouTubeTranscriptApi | |
def fetch_and_concat_transcript(video_id): | |
try: | |
# Fetching the transcript | |
transcript_list = YouTubeTranscriptApi.get_transcript(video_id) | |
# Concatenating text from the transcript | |
concatenated_text = " ".join(item['text'] for item in transcript_list) | |
print(concatenated_text) |
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
// SPDX-License-Identifier: Apache-2.0 | |
pragma solidity ^0.8.0; | |
import "./interface/IDrop.sol"; | |
import "../lib/MerkleProof.sol"; | |
abstract contract Drop is IDrop { | |
/*/////////////////////////////////////////////////////////////// | |
State variables | |
//////////////////////////////////////////////////////////////*/ |
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
# To the extent possible under law, the author(s) have dedicated all | |
# copyright and related and neighboring rights to this software to the | |
# public domain worldwide. This software is distributed without any warranty. | |
# You should have received a copy of the CC0 Public Domain Dedication along | |
# with this software. | |
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
# base-files version 4.2-3 | |
# ~/.bash_profile: executed by bash(1) for login shells. |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+left", | |
"command": "workbench.action.focusPreviousGroup", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+right", | |
"command": "workbench.action.focusNextGroup", |
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
pragma solidity ^0.4.8; | |
contract Charity { | |
address owner; | |
address boardMember1; | |
address boardMember2; | |
address recipient; | |
bool registeredYet; | |
mapping(address => bool) signatures; | |
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
### Keybase proof | |
I hereby claim: | |
* I am brianyang on github. | |
* I am brianyang (https://keybase.io/brianyang) on keybase. | |
* I have a public key ASAi-kJA1Z4j3AOP6wqALaMLdP7Dy9Gz4Xt6ykvES5NlGgo | |
To claim this, I am signing this object: |
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
<!-- http://cwestblog.com/2017/12/11/responsive-youtube-embed/ --> | |
<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/ZbZSe6N_BXs" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe> |
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 {Model} from 'react-vr'; | |
function getFormat(formats, format) { | |
for (let i = 0; i < formats.length; i++) { | |
if (formats[i].formatType === format) { | |
return formats[i]; | |
} | |
} | |
} |
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(){ | |
var original = console; | |
Object.defineProperty(window, 'console', { | |
get:function(){ | |
return original; | |
}, | |
set:function(value){ | |
original.log(value) | |
} | |
}) |
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 d() { | |
if (j.length >= 1) { | |
var b = j.offset().top + j.height() | |
, c = g.scrollTop() + g.height() | |
, d = 100 - (b - c) / (b - g.height()) * 100; | |
a(".progress-bar").css("width", d + "%"), | |
d > 100 ? a(".progress-container").addClass("ready") : a(".progress-container").removeClass("ready") | |
} |
NewerOlder