Skip to content

Instantly share code, notes, and snippets.

View amorist's full-sized avatar
🔞
Focusing

Amor amorist

🔞
Focusing
View GitHub Profile
@hanxiao
hanxiao / testRegex.js
Last active September 21, 2024 17:50
Regex for chunking by using all semantic cues
// Updated: Aug. 20, 2024
// Run: node testRegex.js whatever.txt
// Live demo: https://jina.ai/tokenizer
// LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
// COPYRIGHT: Jina AI
const fs = require('fs');
const util = require('util');
// Define variables for magic numbers
const MAX_HEADING_LENGTH = 7;
@JimLiu
JimLiu / Subtitle.srt
Last active July 23, 2023 03:01
The Amazing AI Super Tutor for Students and Teachers | Sal Khan | TED
1
00:00:04,543 --> 00:00:08,421
所以任何在过去几个月一直关注的人
So anyone who's been paying attention for the last few months
2
00:00:08,462 --> 00:00:10,547
都会看到这样的标题,
has been seeing headlines like this,
@itxsoumya
itxsoumya / goSubFinder.go
Created February 5, 2021 11:34
find out subdomain using golang :)
package main
import (
"bufio"
"errors"
"flag"
"fmt"
"os"
"github.com/miekg/dns"
import MaxPlus
import os
import os.path
import pymxs
rt = pymxs.runtime
def convertAllToMeshes(n, indent=''):
objName = n.GetActualINode().Name
if "Line" in objName:
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active September 22, 2024 12:13
crack activate Office on mac with license file
@jimfoltz
jimfoltz / a2s.cpp
Last active July 4, 2022 07:51
convert mesh files to .skp using assimp library
#include <SketchUpAPI/SketchUp.h>
#include <iostream>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/DefaultLogger.hpp>
#include "output_sketchup_error.h"
@awesomebytes
awesomebytes / alienware15r3_install_ubuntu14.04.05.md
Created December 8, 2016 09:37
Install Ubuntu 14.04 on Alienware 15 R3 instructions

How to install Ubuntu 14.04.05 on Alienware 15 R3

Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.

Let windows 10 install

Just next, next, next filling up your data.

You should get a BIOS update alert from the Alienware Update widget. If not, right click on the Down arrow icon in the bottom right extra icons ^ thing and right click, then click Check for Updates.

@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

#!/bin/bash
EXPLODED=/Users/develar/Documents/onshape-desktop-shell/dist/mac/Onshape.app
VOLNAME=Onshape
BG_PIC=/Users/develar/Documents/onshape-desktop-shell/build/background.png
rm -rf ${EXPLODED}/../test
mkdir -p ${EXPLODED}/../test/.background
cd ${EXPLODED}/../test
@Kronopath
Kronopath / converter.py
Last active March 5, 2024 06:19
WeChat audio converter script. See http://kronopath.net/blog/extracting-audio-messages-from-wechat/ for more details.
# WeChat aud file converter to wav files
# Dependencies:
# SILK audio codec decoder (available at https://github.com/gaozehua/SILKCodec)
# ffmpeg
#
# By Gabriel B. Nunes (gabriel@kronopath.net)
# Adapted from another script by Nicodemo Gawronski (nico@deftlinux.net)
#
import os, argparse, subprocess