Skip to content

Instantly share code, notes, and snippets.

View YajanaRao's full-sized avatar
🎯
Focusing

Yajana N Rao YajanaRao

🎯
Focusing
View GitHub Profile
@YajanaRao
YajanaRao / Hello World
Last active January 31, 2019 05:24
Collection of C Programs
/* starting with hello world */
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
/* gcd using recursion */
#include <stdio.h>
int hcf(int n1, int n2);
int main()
{
int n1, n2;
printf("Enter two positive integers: ");
scanf("%d %d", &n1, &n2);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bulma-Vue.js</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
@YajanaRao
YajanaRao / top20.json
Last active September 24, 2019 10:43
Top 20 songs
[
{
"id": 1,
"artwork": "https://dl.dropboxusercontent.com/s/0dk1xmdi05eci1p/kannadiga.jpg?dl=0",
"album": "Sandalwood Hits",
"artist": "All",
"genre": "Sandalwood",
"songs": [
{
"id": "1",
@YajanaRao
YajanaRao / serviceWorker.js
Last active October 15, 2022 10:10
serviceWorker.js file React Native Web
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a page, after all the
// existing tabs open on the page have been closed, since previously cached
// resources are updated in the background.
// To learn more about the benefits of this model and instructions on how to
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
Animated,
Easing,
PanResponder,
Platform,
} from 'react-native';
@YajanaRao
YajanaRao / advanced-python.md
Last active August 10, 2020 17:51
Advanced Python

Python Practice

Basics

  1. What is an expression? Expressions are representations of value. They are different from statements in the fact that statements do something while expressions are a representation of value. Python has some advanced constructs through which you can represent values and hence these constructs are also called expressions.

  2. What is a syntax error? Syntax errors are the most basic type of error. They arise when the Python parser is unable to understand a line of code.

@YajanaRao
YajanaRao / index.html
Created August 29, 2020 16:56
index.html for Create React App
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="%PUBLIC_URL%/favicon.ico" rel="icon" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="#ffffff" name="theme-color" />
<meta content="React Native App" name="description" />
<meta content="react native, react native web" name="keywords" />
<link href="%PUBLIC_URL%/manifest.json" rel="manifest" />
<title>React Native Web</title>
@YajanaRao
YajanaRao / manifest.json
Last active August 29, 2020 17:08
Create React App manifest json file
{
"short_name": "RN - web",
"name": "React Native On Web",
"description": "A react native on web application",
"icons": [
{
"src": "/images/icons-192.png",
"type": "image/png",
"sizes": "192x192"
},
@YajanaRao
YajanaRao / index.js
Created August 29, 2020 17:14
React Native on Web starter file
import React from "react";
import { Text } from "react-native";
import ReactDOM from "react-dom";
import * as serviceWorker from "./serviceWorker";
// Import Main React Native app component here
const App = () => <Text>Hello</Text>;
ReactDOM.render(
<React.StrictMode>
<App />