Skip to content

Instantly share code, notes, and snippets.

View dreygur's full-sized avatar
⚠️
Cannot read property 'status' of undefined

Rakibul Yeasin dreygur

⚠️
Cannot read property 'status' of undefined
View GitHub Profile
@dreygur
dreygur / pokeback.js
Last active September 25, 2025 10:39
I have some weird peoples as friends from college, who loves to keep poking me on FB. This is for those MFs
class Poke {
constructor(interval) {
if (interval) this.INTERVAL = interval;
else this.INTERVAL = 10000;
this.timer = null;
}
set interval(seconds) {
if (!seconds || typeof seconds !== 'number') throw new Error('Interval must be in number of seconds');
'use client';
import React, { CSSProperties, useState } from 'react'
import {
Cell,
ColumnDef,
ColumnFiltersState,
Header,
SortingState,
version: "3"
services:
db:
image: mysql
restart: on-failure
network_mode: host
environment:
- MYSQL_ROOT_PASSWORD=6783
volumes:
package main
import (
"context"
"crypto/tls"
"fmt"
"io"
"math/rand"
"net/http"
"net/url"
#!/bin/bash
envs_folder="envs"
bot_file="bot.js"
for env_file in "$envs_folder"/*.env; do
filename=$(basename "$env_file")
echo "Setting environment variables from file: $filename"
while IFS= read -r line; do
@dreygur
dreygur / carbon-lang-snippets.md
Created August 1, 2022 16:04 — forked from bradtraversy/carbon-lang-snippets.md
Google Carbon Snippets

Google Carbon Snippets

This file contains some of the basic syntax for Google Carbon as well as some info and how to get set up.

The official repo and docs can be found at: https://github.com/carbon-language/carbon-lang

Carbon is an experimental successor to C++. It is NOT ready for production and will not be for a while. This crash course and document were made to explore some of the basic syntax.

How to get started

class MyClass {
num = 10;
objects = {
getNum: function() {
return this.num;
},
setNum: (arg) => {
let oldNum = this.num
this.num = arg;
return [oldNum, this.num];
import os
import re
import time
import base64
import platform
import requests
import subprocess
import zipfile
uri = "http://localhost:3333/session"
import base64
import requests
uri = "http://localhost:3333/session"
header = {
"content-type": "application/json",
}
# Creates a new session
import requests
uri = "http://localhost:3333/session"
header = {
"content-type": "application/json",
}
# Creates a new session
res = requests.post(uri, json={