Skip to content

Instantly share code, notes, and snippets.

View MohamedBassem's full-sized avatar

Mohamed Bassem MohamedBassem

View GitHub Profile
@MohamedBassem
MohamedBassem / ObsidianToOutline.js
Last active October 21, 2024 20:51
Scrape Obsidian Vault and upload it to Outline
/**
* This code is mostly written by gpt-4.
*
* This code will scrape an obsidian vault, and will recreate its structure in a new outline collection.
* The code will preserve the inline images in obsidian and upload them to outline correctly.
*/
const fs = require("fs");
const path = require("path");
const axios = require("axios");
@MohamedBassem
MohamedBassem / USR1 Signal in Go
Last active October 16, 2024 16:22
USR1 Signal in Go
USR1 Signal in Go
@MohamedBassem
MohamedBassem / CodeforcesCSRF
Last active August 29, 2015 14:19
CodeForces CSRF
Codeforces CSRF
@MohamedBassem
MohamedBassem / nogomi_downloader.rb
Created October 10, 2014 15:41
Nogomi Downloader
require 'nokogiri'
require 'open-uri'
require 'net/http'
require 'uri'
artist_link = ARGV[0]
folder_name = ARGV[1]
if artist_link.nil? or folder_name.nil?
puts "You must specify the artist link and folder name"
@MohamedBassem
MohamedBassem / entangle.uml
Last active August 29, 2015 13:58
Entangle Activities Interaction Diagram
@startuml
title Entangle Activities Interactions
object LoginActivity {
The activity in which the user can login
}
object RegisterWebsite {
The webpage where the user can regsiter
}
@MohamedBassem
MohamedBassem / SessionController.php
Last active August 29, 2015 13:57
Symfony's backend session sample code
<?php
namespace Megasoft\EntangleBundle\Controller;
use Megasoft\EntangleBundle\Entity\User;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;