Skip to content

Instantly share code, notes, and snippets.

Mohamed Bassem MohamedBassem

View GitHub Profile
View nogomi_downloader.rb
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 Aug 29, 2015
Entangle Activities Interaction Diagram
View entangle.uml
@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 Aug 29, 2015
Symfony's backend session sample code
View SessionController.php
<?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;
You can’t perform that action at this time.