Skip to content

Instantly share code, notes, and snippets.

View alaztetik's full-sized avatar
😁
Happy developer

Alaz Tetik alaztetik

😁
Happy developer
View GitHub Profile
@umutozd
umutozd / task.md
Created February 20, 2023 10:36
Otsimo - Frontend Task

Transparent Restaurant

In this task, you're going to create a simple web application with React.js or mobile app with React Native for interacting with a menu of a restaurant. We are providing you a simple API which you will parse and perform operations on. The required features will be listed below. You may create a new react project following guide in this link: https://reactjs.org/docs/create-a-new-react-app.html for web application.

If you like to use typescript(recommended) you may use these commands:

npx create-react-app transparent-restaurant --template typescript
cd transparent-restaurant
yarn start # or npm start
@bradtraversy
bradtraversy / ssh.md
Last active May 8, 2024 23:05
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Notification API</title>
<meta name="viewport" content="width=device-width">
</head>
<body>
<h1>Notification API</h1>
<p id="output"></p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Visibility API</title>
<meta name="viewport" content="width=device-width">
</head>
<body>
<h1>Page Visibility API</h1>
<p>As long as this tab is the one tab in the browser with focus then nothing happens. When the user switches to another tab that triggers the visibilitychange event on the document object.</p>
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@1cg
1cg / equality.gs
Created January 10, 2017 21:31
Helping understand different notions of equality
// gosu
var x = ...
var y = ...
if( x == y ) {
print("x and y are value equal, including null")
}
if( x === y ) { // note, triple equals!
@joepie91
joepie91 / getting-started.md
Last active February 21, 2024 14:45
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!

@learncodeacademy
learncodeacademy / pubsub.js
Created July 29, 2015 02:54
Basic Javascript PubSub Pattern
//events - a super-basic Javascript (publish subscribe) pattern
var events = {
events: {},
on: function (eventName, fn) {
this.events[eventName] = this.events[eventName] || [];
this.events[eventName].push(fn);
},
off: function(eventName, fn) {
if (this.events[eventName]) {
@alexpchin
alexpchin / restful_routes.md
Last active May 2, 2024 13:40
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.