Skip to content

Instantly share code, notes, and snippets.

View vemarav's full-sized avatar
👨‍💻
Productive

Aravind Vemula vemarav

👨‍💻
Productive
View GitHub Profile
@vemarav
vemarav / ceres-solver-android.md
Last active February 18, 2024 08:38
Generate ceres-solver libceres.so for android

STEP 1

git clone https://ceres-solver.googlesource.com/ceres-solver

STEP 2

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;
@vemarav
vemarav / todo_stateful.dart
Created May 2, 2022 12:33
todo list app using stateful widget
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
@vemarav
vemarav / intro_to.dart
Created May 1, 2022 03:45
introduction to dart
// import 'dart:async';
// import 'dart:math';
// every dart program starts with main function
void main() {
// basic data types
// 1. bool
// 2. int
// 3. double
@vemarav
vemarav / text.dart
Last active April 16, 2022 06:33
Flutter text scale animation
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
@vemarav
vemarav / share-urls.md
Created March 23, 2021 18:30 — forked from apisandipas/share-urls.md
Share url's for Facebook, Twitter, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=

@vemarav
vemarav / git-aware-bash-prompt.md
Created January 2, 2021 07:00 — forked from eliotsykes/git-aware-bash-prompt.md
Git Aware Bash Prompt
/**
* 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'),
})