Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️‍♀️
I may be slow to respond.

mambodin

🕵️‍♀️
I may be slow to respond.
View GitHub Profile
View newsAPI React
import React, { useState, useEffect } from 'react';
import News from './News'
import '../Css/Project.css'
const Project = () => {
let [newsData, setNewsData] = useState([])
let [country, setCountry] = useState('')
View chat_screen.dart
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
class ChatScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: StreamBuilder(
stream: Firestore.instance
.collection('/ChatApp/PuC0dvcVj5P6i1B9Qmns/messages/')
View chat_screen.dart
import 'package:flutter/material.dart';
class ChatScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ListView.builder(
itemBuilder: (ctx, index) =>
Container(child: Text('CHAT!'), padding: EdgeInsets.all(8)),
itemCount: 10,
View NoteApp V1
import React, {useState, useEffect} from 'react';
const NoteApp = () =>{
let [title, setTitle] = useState('')
let [noteBody, setNoteBody] = useState('')
let [notes, setNotes] = useState([])
let addNoteHandler = (e) =>{
e.preventDefault()
View ReactCalculator
import React, {useState, useEffect} from 'react';
import '../Css/Calculator.css'
const Calculator = () => {
let [result, setResultState] = useState(0)
let [inputDisplay, setInputDisplayState] = useState(0)
View gist:2b0698998e616ab7dde381a9ec5cf33d
# Paste your game code from Task 2 here to work on your upgrades
import random
def difficulty():
difficulty = int(input("We will be playing game of limits. Tell me your upper limit "))
return difficulty
def intro(diff):
name = input("What is your name ? ")
View Profile
import React from 'react';
import ReactDom from 'react-dom';
let root = document.getElementById('root')
let jsx = (
<div><h1>Welcome to my site</h1> <p>Hello World!</p></div>
View InstaFake.js
import React, {useState, useEffect} from 'react'
import firebase from './database'
const DataPull = () =>{
let [data, setData] = useState([])
useEffect(()=>{
firebase.database().ref('/Entries').on('value', (snapshot) => {
View InstaFake
import React, { useState, useEffect } from 'react';
import firebase from './fire'
const DataPull = () => {
let [data, setData] = useState([])
useEffect(() => {
firebase.database().ref('react-firebase/').on("value", (snapshot) => {
You can’t perform that action at this time.