Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
Presented By D3C0D3

vamsee. vamsee9

:electron:
Presented By D3C0D3
View GitHub Profile
View Input reading and output formatting.md

Input reading and output formatting #2


Problem Submissions Leaderboard Discussions This problem is designed for you to improvise on how to read input and format the output.

Input Format

View Flask_Automation.sh
#!/bin/sh
echo "This is automated script for run python flask creation"
echo ""
py -m venv env
echo ""
echo "Wait for 5 seconds"
echo ""
sleep 5
cd env/Scripts
View Change_Author_in_Git.sh
# Step 1:
git clone --bare <REPOSITORY URL with ".git" extention>
cd <repository folder>
# Step 2:
# ~ Required GitHub Email and Username
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='vamsee9'
View Mic.js
navigator.mediaDevices.getUserMedia({ audio: true })
.then(function(stream) {
console.log('You let me use your mic!')
})
.catch(function(err) {
console.log('No mic for you!')
});
View Project Euler #81: Path sum: two ways.py
import sys
n = int(input())
ar = []
ar2 = []
for a in range(n):
ar.append([int(x) for x in input().split()])
ar2.append([0 for x in range(5)])
View kgtopoundsApp.js
import React, { Component } from "react";
import "./App.css";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
const initialState = {
pounds: "",
kilograms: "",
};
@vamsee9
vamsee9 / permission.java
Last active Sep 1, 2020
Custom Settings for 📷 and 📁
View permission.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (checkAndRequestPermissions()) {
Log.d(TAG, "onCreate: Permission checking ---------");
}
}
View dependencies
dependencies {
// ...
implementation 'com.google.android.material:material:<version>'
// ...
}
View dependencies
dependencies {
// ...
implementation 'com.google.android.material:material:<version>'
// ...
}
View MainActivity.java
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
//in this you have to declare the functions
private static final String TAG = "MainActivity" ;
FloatingActionButton FabMainAdd, FabCamera, FabImportImage;
Float translationY = 100f;
OvershootInterpolator interpolator = new OvershootInterpolator();
Boolean isMenuOpen = false;