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
// ==UserScript== | |
// @name GitHub Useful Forks | |
// @namespace Violentmonkey Scripts | |
// @version 1.0 | |
// @author bethro | |
// @icon https://useful-forks.github.io/assets/useful-forks-logo.png | |
// @description Adds a button to GitHub repositories to see useful forks of the repo. | |
// @homepageURL https://github.com/bethropolis/useful-forks | |
// @supportURL https://github.com/bethropolis/useful-forks/issues | |
// @match https://github.com/*/* |
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
[ | |
{ | |
"id": 1, | |
"name": "Item 1", | |
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs" | |
}, | |
{ | |
"id": 2, | |
"name": "Item 2", | |
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs" |
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
// HTML snippet | |
const htmlSnippet = ` | |
<div class="infozingle"> | |
<p> | |
<span> | |
<b>Judul</b>: Ishura | |
</span> | |
</p> | |
</div> | |
`; |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"log" | |
"os" | |
"path/filepath" | |
"runtime" | |
"sync" |
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 json | |
import random; | |
import os | |
folder_name = "Playlist" | |
tracks=os.listdir(folder_name) | |
while True: | |
songName = input("\n\nEnter the song or artist name(Enter q to quit): ").lower() |
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 json | |
import random | |
playlists=["trap","hiphop"] | |
query = input("Enter song name or artist name: ").lower() | |
def load_songs(file): | |
file_path = file + ".json" | |
with open(file_path) as f: | |
songs = json.load(f) |
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
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"os" | |
"strings" | |
) |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strings" | |
"time" | |
) |
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 os | |
import fnmatch | |
# Define the root directory | |
root_dir = os.getcwd() | |
# Define the output file name | |
output_file = "directory_structure.txt" | |
# Define patterns to ignore |
NewerOlder