Skip to content

Instantly share code, notes, and snippets.

View YamiOdymel's full-sized avatar
🎥
Watching VRChat Handjob V2 (Edit Audio)

Yami Odymel YamiOdymel

🎥
Watching VRChat Handjob V2 (Edit Audio)
View GitHub Profile
@shunnNet
shunnNet / browser-ai-vai-plugin-question.md
Last active January 1, 2024 23:19
How to scrap all `.vue` template info at build time ?

前言

我有一個專案叫 browser-ai,在裡面有個功能是可以使用 Vue 的 directive 為 DOM 綁上標籤

<template>
  <h1 v-ai="{ id: 'title', description: 'Search Product In this page' }">...</h1>
</template>

<!-- 上述內容會轉換成 -->
<h1 data-ai-id="title" data-ai-description="Search Product In this page">...</h1>
@bpanicker13
bpanicker13 / index.html
Created February 27, 2017 03:40
Simple Typing Carousel
<link href="http://fonts.googleapis.com/css?family=Raleway:200,100,400" rel="stylesheet" type="text/css" />
<h1>Build your own
<span
class="txt-rotate"
data-period="2000"
data-rotate='[ "eCommerce Site.", "Web Application.", "IoT Device.", "Blog." ]'></span>
</h1>
<h2>Create Your Awesome Website with Synoval.</h2>
@gokulkrishh
gokulkrishh / media-query.css
Last active May 11, 2024 08:44
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@trkrameshkumar
trkrameshkumar / db.go
Created September 6, 2015 07:19
Get get number of rows using sql in golang
package main
import (
"database/sql"
"fmt"
_ "github.com/lib/pq"
)
const (
DB_USER = "ramesh"
@rameshvarun
rameshvarun / HTTP2 Streaming RPC.md
Last active August 29, 2019 18:59
How the HTTP2 API could be used to implement a streaming RPC more easily than other transport layers.

HTTP2 Streaming RPC

Output

Server

RPC from client to FindInProjectService/search
Sending search update.
Sending search update.
RPC from client to FindInProjectService/search
Sending search update.
package test
import (
"math/rand"
"testing"
"time"
)
type Customer struct {
Id int
@betamax
betamax / apib2httpsnippets
Created June 19, 2015 12:27
A ruby script to convert an HTTP blueprint JSON file into multiple HAR files and then convert those HAR files in to code snippets using httpsnippet
#!/usr/bin/env ruby
# ./apib2httpsnippets
# Author: Max Novakovic
# Email: max@lateral.io
require 'awesome_print'
require 'json'
require 'fileutils'
require 'uri'
/* VT100 terminal reset (<ESC>c) */
console.log('\033c');
/* numbers comparations */
> '2' == 2
true
> '2' === 2
@schempy
schempy / stream-file-uploads-nodejs.js
Created March 11, 2015 21:59
Streaming File Uploads With Node.Js
var http = require('http');
var router = require('routes')();
var Busboy = require('busboy');
var port = 5000;
// Define our route for uploading files
router.addRoute('/images', function (req, res, params) {
if (req.method === 'POST') {
// Create an Busyboy instance passing the HTTP Request headers.
@james2doyle
james2doyle / pagination.php
Last active August 26, 2023 07:52
Simple pagination element with dot separation when large counts
<div class="pagination size1of1 unit">
<?php if($paged == 1): ?>
<span class="current"><?php echo $paged ?></span>
<?php else: ?>
<a class="prev" href="?page=<?php echo ($current_page - 1) ?>">Prev</a>
<?php if ($current_page > 2): ?>
<a href="?page=1">1</a>
<?php endif ?>
<?php if ($current_page > 3): ?>
<span class="dots">...</span>