Skip to content

Instantly share code, notes, and snippets.

View bluemix's full-sized avatar
🖐️
Hello There :D

Abdulmomen Bsruki bluemix

🖐️
Hello There :D
View GitHub Profile
@ffeu
ffeu / main.dart
Created August 3, 2018 00:18
Flutter Main Example with StreamBuilder
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@Blasanka
Blasanka / main.dart
Created July 2, 2018 06:03
This is a very long text used to demonstrate how to wrap text inside a Column or Row widget. And also to show how to add another row of icon button next to these text widget without going overflow and be center of text widget in main axis
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'LogIn n SignUp',
theme: ThemeData(
@slightfoot
slightfoot / appbar_demo.dart
Created July 2, 2018 01:50
Demonstrate how to change the AppBar from within a PageView.
import 'package:flutter/material.dart';
void main() => runApp(TestApp());
class TestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: Colors.green[900],
@mjohnsullivan
mjohnsullivan / quote.dart
Created June 25, 2018 23:20
Simple Flutter app to retrieve and display a quote of the day
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@sir-boformer
sir-boformer / main.dart
Created June 20, 2018 13:42
Flutter Text Foreground Gradient Demonstration
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@MichaelPolla
MichaelPolla / github-resize-pictures.md
Last active July 5, 2024 21:21
Markdown - Resize pictures in GitHub, including in comments comment

Markdown - Resize pictures in GitHub

I found that the "best" way is to use HTML, as it works both in Readme/.md files and also in comments (within Issues, Gist...)

E.g. when adding/editing a comment (within Issues, Gist...) :

  • Upload the picture by drag-and-drop in the text field
  • replace ![image](https://your-image-url.type) with <img src="https://your-image-url.type" width="100" height="100">

As mentioned by @cbestow (thanks!), it's not mandatory to set both width and height. If only one is set, the other will be adjusted accordingly to preserve the aspect ratio of the image.

@bmaupin
bmaupin / open-arabic-fonts.md
Last active September 9, 2024 16:57
Open Arabic fonts
@dsternlicht
dsternlicht / i18n.js
Created November 13, 2017 11:38
i18n.js file with moment.js
import ReactNative from 'react-native';
import I18n from 'react-native-i18n';
import moment from 'moment';
// Import all locales
import en from './en.json';
import he from './he.json';
// Should the app fallback to English if user locale doesn't exists
I18n.fallbacks = true;
@Piasy
Piasy / install_ffmpeg.sh
Last active March 16, 2025 19:14
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
@bradley
bradley / Digital-Ocean-SSH-and-Subdomains.md
Last active February 5, 2022 04:05
Digital Ocean SSH and Subdomains

Basic Getting Started Ubuntu 16.04

SSH into your server at root:

ssh [email protected]

Crate a new user:

adduser my_username

Make the new user a sudo user: