# 1. https://docs.beam.cloud/v2/getting-started/quickstart#installation
# 2. beam deploy kokoro_beam.py:generate_speech
from beam import endpoint, env, Image, Output
if env.is_remote():
from kokoro import KPipeline
import subprocess
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 useEmblaCarousel, { | |
| type EmblaCarouselType as CarouselApi, | |
| type EmblaOptionsType as CarouselOptions, | |
| type EmblaPluginType as CarouselPlugin, | |
| } from "embla-carousel-react"; | |
| import { ArrowLeft, ArrowRight } from "lucide-react"; | |
| import * as React from "react"; | |
| import { Button, ButtonProps } from "@/components/ui/button"; | |
| import { cn } from "@/lib/utils"; |
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
| #!/bin/bash | |
| ###################################################### | |
| # Basic settings | |
| ###################################################### | |
| # server base directory | |
| RAGNAROK_DIR=/rAthena | |
| # mysql database settings | |
| MYSQL_ROOT_PW="changeme" |
I hereby claim:
- I am superbahbi on github.
- I am superbahbi (https://keybase.io/superbahbi) on keybase.
- I have a public key whose fingerprint is C327 F42D 7026 F880 4547 80EE A07C 68FD DD42 D1D7
To claim this, I am signing this object:
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/python | |
| #To install cleverbot use 'pip install cleverbot' | |
| import cleverbot, getpass, time, random | |
| from sleekxmpp import ClientXMPP | |
| class fbMsgBot(ClientXMPP): | |
| def __init__(self, jid, password): | |
| ClientXMPP.__init__(self, jid, password) | |
| self.add_event_handler('session_start', self.start) | |
| self.add_event_handler("message", self.message) |
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 mechanize | |
| from urlparse import urlparse, urljoin | |
| """Mechanize will open the link given to it and get the links without breaking much sweat, | |
| I am not sure what kind of repository setup you have so i am just going to use a global list named master to store all the succesfully crawled links, I also added a failed_link list that will store the links that the mechanize model was unable to open for further crawling. """ | |
| """I wasn't sure about the links that the program needs to handle or how those links needed to be handled, so this program assumes that the link given to it is a valid link and i tried to make the program such that it doest not fail without warning""" | |
| """to form the repository of sites, the master and failed_links lists needs to be stored. Personally I would prefer storing the data in Mongo in the structure: | |
| {'site' : site, |
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/python | |
| import mechanize, time, os, getpass | |
| usr = raw_input("Enter enter email: ") | |
| pas = getpass.getpass() | |
| print "Waiting....." | |
| MAX_DELAY = 10 | |
| totalPokes = 0 | |
| b = mechanize.Browser() | |
| b.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.61')] | |
| b.set_handle_robots(False) |
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
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = '[email protected]' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>(null)_Other</key> | |
| <string>rgba(0.866667,0.031373,0.023529,1.0)</string> | |
| <key>(null)_Spaces</key> | |
| <string>rgba(0.498039,0.498039,0.498039,1.0)</string> | |
| <key>BackgroundColor</key> | |
| <string>rgba(0.122179,0.122179,0.122179,1.0)</string> |