Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Scroll To Text Fragment</title>
<style>
* {
box-sizing: border-box;
}
@arsenyturin
arsenyturin / instagram_post_data.py
Last active February 5, 2023 16:16
How to retrieve instagram post data with Selenium
from selenium import webdriver
driver = webdriver.Chrome('../chromedriver')
driver.get('https://www.instagram.com/accounts/login/')
def get_post_description():
description = driver.execute_script('''return document.getElementsByClassName('C4VMK')[0].getElementsByTagName('span')[0].innerText''')
return description
def get_post_date():
@ksdkamesh99
ksdkamesh99 / Page Rank Algorithm.py
Created May 9, 2020 18:53
Implementation of pagerank algorithm using python networkx library
# -*- coding: utf-8 -*-
"""Page Rank Algorithm.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1oUC_418I6e2nv_2xBQ0sgXZtDfA98zuH
"""
cd /content/drive/My Drive/medium blogs/Page Rank Algorithm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Using FormData to ParseForms</title>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;600&display=swap"
rel="stylesheet"
/>
const people = [
{ id: 12, name: 'Billy', dob: '1998-10-05' },
{ id: 123, name: 'Bart', dob: '1993-02-15' },
{ id: 45, name: 'Belinda', dob: '1996-01-31' },
{ id: 67, name: 'Bonnie', dob: '1998-04-09' },
{ id: 89, name: 'Brenda', dob: '1996-07-08' },
{ id: 34, name: 'Bobby', dob: '1994-09-12' },
{ id: 234, name: 'Blake', dob: '2000-01-01' },
];
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 15, 2025 12:37
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

import boto3
def main():
# 1 - Create Client
ddb = boto3.resource('dynamodb',
endpoint_url='http://localhost:8000',
region_name='dummy',
aws_access_key_id='dummy',
aws_secret_access_key='dummy')
# 2 - Create the Table
ddb.create_table(TableName='Transactions',
@tomhicks
tomhicks / plink-plonk.js
Last active May 15, 2025 13:25
Listen to your web pages
window.onload = function(){
/** UNSAFE with localStorage **/
let jwt = null
onLogin(){
jwt = await login()
}
onDataFetch(){
import json
import boto3
import uuid
client = boto3.client('stepfunctions')
def lambda_handler(event, context):
#INPUT -> { "TransactionId": "foo", "Type": "PURCHASE"}
transactionId = str(uuid.uuid1()) #90a0fce-sfhj45-fdsfsjh4-f23f