Skip to content

Instantly share code, notes, and snippets.

View anasayubi's full-sized avatar

Anas Ayubi anasayubi

  • Karachi, Pakistan
View GitHub Profile
@anasayubi
anasayubi / main.dart
Last active May 11, 2025 21:04
Code for the tutorial "Make Anything in Flutter using RenderObjects" by Robert Brunhage. Link: https://www.youtube.com/watch?v=uC3sL5SmizM
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@anasayubi
anasayubi / open_course.sh
Created April 21, 2018 05:47
View course videos properly
#!/bin/bash
# Prereqs:
## The lecture video can be given any NAME.EXT for example: first_week_collective_section.mp4
## The slides video must be gviven the name NAME_slides.EXT for example: first_week_collective_section_slides.mp4
## vlc and ffmpeg must be installed
# Usage:
# The parameter passed to the file must be the lecture video name. To create a final file, the following must be passed: ./open_course first_week_collective_section.mp4
# A final file by the name of final_week_collective_section_final.mp4 will then be created
@anasayubi
anasayubi / op.sh
Last active April 18, 2018 04:42
Running GUI applications from the terminal without any hassle (with no weird GUI application output) and the terminal remains interactive for your usage!
#!/bin/bash
# Format:
# op.sh [PROGRAM] [FILE]
# op.sh -l -> lists the current screen sessions
# otherwise shows help
# ensure that screen is preinstalled on your system
BOLD=$(tput bold)
@anasayubi
anasayubi / README.md
Created February 3, 2018 03:50 — forked from hofmannsven/README.md
My simply Git Cheatsheet