Skip to content

Instantly share code, notes, and snippets.

View abstractalgo's full-sized avatar

Dragan Okanovic abstractalgo

View GitHub Profile
@abstractalgo
abstractalgo / github-web-container.ts
Last active March 29, 2023 15:21
a utility function to retrieve entire dir from the Github and convert it into a FS for use by Web Container
import { DirectoryNode, FileSystemTree } from "@webcontainer/api";
export const getGithubFilesTree = async ({
owner,
repo,
path,
branch = "master",
}: {
owner: string;
repo: string;

This repository holds all opportunities for funding academic projects that we're aware of, and our previous applications for some of them.

Feel free to reach out to us to add your suggestions as well.

Alfred P. Sloan foundation

Fund research and education in science, technology, engineering, mathematics and economics Generally accepting proposals all year round.
Programs:

Tell us about the world as you see it

The world is incredibly complex. And it is facing some unprecedented threats. There are many legacy subsystems that didn’t account for problems of this magnitude, nor the advanced digital age of the Internet. This is both a challenge, and an opportunity.

At the core of all progress lies our need for experimentation and innovation, and those are embodied within academia.

Academia has suffered as well, and is being characterized as “broken”, “dying” and “unfair”. Our very seed of progress’ rotten.

People can’t find and access research materials. Scholars aren’t getting paid for their work and their schedules oversubscribed, so holes appear where the quality of work pays the price - it remains unverified and some people abuse that. Trust is broken. There’s a feeling of injustice and wrongdoing. People are incentivized by decision-makers to adjust the results for shock factor, instead of truth. It seems that scholars spend most of the time struggling and fighting agai

to achieve something you need to inventivize people
they have a goal in mind and they have a motivation why they do that something
goal is some kind of metric that they are optimizing for
motivation is some kind of a reward that they can get
{
"block1": {
"name": "Prvi blok",
"desc": "Ovo je prvi blok i on je najbolji."
},
"block2": {
"name": "Drugi blok",
"desc": "Ovaj blok je malo manje bitan"
},
"block3": {
@abstractalgo
abstractalgo / proxy-deployment-ubuntu-18.04-tutorial.md
Created January 26, 2020 23:39
A complete walkthrough on setting up hosting for a web app and a deployment pipeline.

This is a complete walkthrough on setting up hosting for a web app and a deployment pipeline. Some things can be imporoved, but this can be used as well.

Our app is monolithic JS app: React frontend, Express backend, managed by yarn. PM2 process manager. Database is out of scope currently, but some notes will be added later. We use nginx as reverse proxy. We will set up SSL via "Let's Encrypt" for free.

All this is hosted on DigitalOcean (that can also be changed). In DigitalOcean's terms, we will setup two droplets (i.e. two machines) that will be used for staging and production. We also added a space (object storage) that is used to store large files (this is out of scope and doesn't change any portion of this setup).

We will use Github and Github Actions to hook into events that happen within our code repository.

The flow is as follows: once this setup is complete, our repo will have activated actions. On each push to the dev branch - newest version of that branch will be pulled and transfered into a

#include <stdio.h>
#include <vector>
struct pt
{
double x;
double y;
pt(double a=0,double b=0) : x(a), y(b) {}
void mul(double s) {
x *= s;
@abstractalgo
abstractalgo / GLSL-Noise.md
Created June 20, 2016 10:44 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#define streq(a, b) (!strcmp((a), (b)))
#ifndef __USE_GNU
#define __USE_GNU
#endif
@abstractalgo
abstractalgo / cool-game-programming-blogs.opml
Created May 1, 2016 17:11 — forked from Reedbeta/cool-game-programming-blogs.opml
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Graphics, Games, Programming, and Physics Blogs</title>
</head>
<body>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="http://arstechnica.com"/>
<outline type="rss" text="The Tech Report - News" title="The Tech Report - News" xmlUrl="http://techreport.com/news.xml" htmlUrl="http://techreport.com"/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="http://www.roadtovr.com"/>