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
<script type="text/javascript"> | |
document.addEventListener("DOMContentLoaded", function () { | |
const speed = 1; // Adjust for faster or slower movement | |
const container = document.createElement("div"); | |
container.style.position = "fixed"; | |
container.style.top = 0; | |
container.style.bottom = 0; | |
container.style.left = 0; | |
container.style.right = 0; |
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
$ git clone https://github.com/iizukanao/node-rtsp-rtmp-server | |
$ coffee -c . | |
$ node server.js | |
$ ffmpeg -f avfoundation -i "0" -vcodec libx264 -tune zerolatency -s 320x480 -vf crop=320:480:0:0 -f flv rtmp://0.0.0.0/live/desktop | |
# stream on ios device | |
$ git clone https://github.com/iMoreApps/ffmpeg-avplayer-for-ios-tvos | |
$ open AVPlayerDemo.xcodeproj (change rtmp stream to rtmp://<LOCAL_IP>/live/desktop, build and run) |
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
// go to following or followers page | |
let values = new Set([]); | |
let height = 0; | |
function scroll() { | |
if (height < document.body.scrollHeight) { | |
height = document.body.scrollHeight; | |
window.scrollTo(0, height); | |
setTimeout(scroll, 2000); | |
[ |
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
def remote_ip | |
if forwarded = request.env["HTTP_X_FORWARDED_FOR"] | |
forwarded.split(",").first | |
elsif addr = request.env["REMOTE_ADDR"] | |
addr | |
end | |
end |
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 axios from "axios"; | |
import { createWriteStream } from "fs"; | |
import { resolve } from "path"; | |
async function downloadImage(url, filename) { | |
const path = resolve(__dirname, "../avatars", filename); | |
const response = await axios({ | |
method: "GET", | |
url, | |
responseType: "stream", |
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
on: | |
release: | |
types: | |
- published | |
jobs: | |
tweet: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ethomson/send-tweet-action@v1 | |
with: |
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
const { | |
getHashedName, | |
getNameAccountKey, | |
NameRegistryState, | |
} = require("@solana/spl-name-service"); | |
const { | |
Connection, | |
clusterApiUrl, | |
PublicKey, |
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
# As root user | |
sudo su | |
# Update the OS | |
sudo apt-get update -y | |
# Add this to ~/.bashrc to remove timezone warnings | |
echo 'export LC_ALL="en_US.UTF-8"' >> ~/.bashrc | |
source ~/.bashrc |
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
name | mint_address | |
---|---|---|
Ape #91 | FUcUDinc5nvCzkt3CRRzYbbWaXpCJzD6CogUn8zp2jC8 | |
Ape #143 | Fk2Pdz9kJFm6AHoKs75y35Sr7nmMY93EMrwjXk4Zybs1 | |
Ape #148 | CkExwWKgapXYaYpWEFug4Ezba9EXWBTJ3fgcofhRrLC7 | |
Ape #156 | 3Nxp3oXqY6YVZkPfQXk9iDjdvUcNZM6Wp6bPWrdHc5Jk | |
Ape #178 | 5bzsQ17MsQrAuPZ7i5RqjE9Yw89As4VpeHR1ePuTU7ei | |
Ape #180 | G4VshHmcaVn7Y5aqiF7Zn8iZ2wmprwf3KCwf3sdpBGRL | |
Ape #195 | 3PRZ7r6t3THHwNYv2A8jM1KGjA8Jqid49GhwGRBbhnnP | |
Ape #198 | Ao5tVE1pRV3CjJBAsU1uMZND3tgpgr2enoMEeTVAk9pt | |
Ape #207 | 5yR2tWxeib8WjQGMTQCqZBiFs9Api5kioo1oixVJRL63 |
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
curl https://rpc.goo.tools -X POST -H "Content-Type: application/json" -d ' | |
{ | |
"jsonrpc": "2.0", | |
"id": 1, | |
"method": "getProgramAccounts", | |
"params": [ | |
"cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ", | |
{ | |
"dataSlice": { "offset": 0, "length": 0 } | |
} |
NewerOlder