git clone https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
import React, {useState} from 'react'; | |
import {Alert, Clipboard, View, ViewStyle} from 'react-native'; | |
import FastImage, {ResizeMode} from 'react-native-fast-image'; | |
import Video, {VideoProperties} from 'react-native-video'; | |
import {InView} from 'react-native-intersection-observer'; | |
import {useNavigation} from '@react-navigation/native'; | |
export interface VideoBGProps | |
extends Omit<VideoProperties, 'source' | 'src' | 'resizeMode'> { | |
imgURL: string; |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
// bloc & get packages | |
// behind | |
void main() { | |
runApp(MyApp()); | |
// expects to receive a widget and mount it as a root widget |
// import 'dart:async'; | |
// import 'dart:math'; | |
// every dart program starts with main function | |
void main() { | |
// basic data types | |
// 1. bool | |
// 2. int | |
// 3. double |
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const String _title = 'Flutter Code Sample'; | |
@override |
In Terminal
mkdir ~/.bash
Copy the raw git-prompt.sh
file from git contrib in to the ~/.bash
directory: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
Inside ~/.bashrc
or ~/.bash_profile
(choose the file where you normally put any bash customizations/setup), add the lines:
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
#import "AppDelegate.h" | |
#import <React/RCTBridge.h> | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTRootView.h> |
import {AppRegistry} from 'react-native' | |
import {name as appName} from './app.json' | |
import App from './App' | |
AppRegistry.registerComponent(appName, () => App) | |
AppRegistry.runApplication(appName, { | |
initialProps: {}, | |
rootTag: document.getElementById('app-root'), | |
}) |