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 | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
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
| from reportlab.pdfbase import pdfmetrics | |
| from reportlab.pdfbase.ttfonts import TTFont | |
| from reportlab.lib.pagesizes import A4 | |
| from reportlab.lib.units import inch | |
| from reportlab.pdfgen import canvas | |
| def split_text_into_chunks(text, num_chunks): | |
| """Split the text into specified number of chunks.""" | |
| lines_per_chunk = len(text) // num_chunks | |
| return [text[i * lines_per_chunk:(i + 1) * lines_per_chunk] for i in range(num_chunks - 1)] + [text[(num_chunks - 1) * lines_per_chunk:]] |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
| <style> | |
| body { | |
| font-family: Arial; | |
| } |
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
| /* | |
| Theme Name: Extra Child | |
| Template: Extra | |
| */ | |
| /* =Theme customization starts here | |
| ------------------------------------------------------- */ | |
| @media (min-width: 1025px) { | |
| #main-header .et-top-search { |
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
| <?php | |
| $q = $_GET['q']; | |
| $sort = $_GET['sort']; | |
| $manticore = new mysqli("127.0.0.1", "", "", "", 9306); | |
| $q=$manticore->real_escape_string($q); | |
| if ($sort=="1") | |
| { | |
| $sphinxQl="SELECT * ,SNIPPET(body,'".$q."','limit=100') as snippet FROM idx_blog WHERE MATCH('".$q."')"; | |
| } |
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
| <p>Manticore Search: <input id="manticoresearch" name="search" type="text" /><br /> | |
| <button type="button" onclick="displaysort()">Manticore Search</button></p> | |
| <div id="sort" style="display: none;"> | |
| <form> | |
| <select name="users" id="sortoption" onchange="search(this.value)"> | |
| <option value="1">Sorting by:</option> | |
| <option value="1">Relevance</option> | |
| <option value="2">Latest Date</option> | |
| </select> | |
| </form> |
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
| <style> | |
| #hotnum { | |
| border-radius: 5px; | |
| cursor: pointer; | |
| transition: 0.3s; | |
| } | |
| #hotnum:hover {opacity: 0.7;} |
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
| <?php | |
| /** | |
| * Plugin Name: Find and Replace TEXT | |
| * Plugin URI: https://jesselau.com | |
| * Version: 2.0 | |
| * Author: jesse Lau | |
| * Author URI: https://jesselau.com | |
| * Description: Add find and replace function in WordPress editor in both visual and text mode. | |
| * License: GPL2 | |
| */ |
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
| <?php | |
| /** | |
| * Plugin Name: Find and Replace Text Mode | |
| * Plugin URI: http://jesselau.com | |
| * Version: 1.0 | |
| * Author: jesse Lau | |
| * Author URI: https://jesselau.com | |
| * Description: Add find and replace function in WordPress editor text mode. | |
| * License: GPL2 | |
| */ |
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
| <?php get_header(); ?> | |
| <div id="main-content"> | |
| <div class="container"> | |
| <div id="content-area" class="clearfix"> | |
| <div id="left-area"> | |
| <?php | |
| if ( have_posts() ) : | |
| while ( have_posts() ) : the_post(); | |
| $post_format = et_pb_post_format(); ?> |
NewerOlder