Skip to content

Instantly share code, notes, and snippets.

View desinas's full-sized avatar

Dimitrios Kalkasinas desinas

View GitHub Profile
@desinas
desinas / MainActivity.java
Last active May 29, 2017 13:23
This is my Pasteboard place, where small chunk of Code stays until use it.
/**
* IMPORTANT: Add your package below. Package name can be found in the project's AndroidManifest.xml file.
* This is the package name our example uses:
*
* package com.example.android.justjava;
*
*/
import android.os.Bundle;
@desinas
desinas / MainActivity.java
Last active May 29, 2017 19:03
The JUST JAVA project from Udacity lesson of Android basics.
// Add your package below
package com.example.android.justjava;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
@desinas
desinas / MainActivity.java
Last active May 29, 2017 19:02
The QUIZ GAME project for education of Android framework.
package com.example.disinas.quiz;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@desinas
desinas / stringManipulation.js
Last active November 7, 2017 13:05
Flatiron School Learn code snippets to remember!
// How to manipulate string in JS
const currentUser = 'Grace Hopper';
const welcomeMessage = `Welcome to Flatbook, ${currentUser}!`;
const excitedWelcomeMessage = welcomeMessage.toUpperCase();
const shortGreeting = `Welcome, ${currentUser.slice(0, 1)}!`;
@desinas
desinas / index.html
Last active December 7, 2017 14:16
Mockup to article Project solution for Udacity FEWDev.// Humans vs Machines Blog// source https://jsbin.com/vebotax/edit?html,output
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Humans vs Machines Blog</title>
</head>
<body>
<!-- This was adapted from: http://blog.udacity.com/2016/03/humans-vs-machines-an-ai-odyssey-2.html -->
<!-- Format this text to match the mockup exactly! -->
<h1>Humans vs. Machines: An AI Odyssey</h1>
@desinas
desinas / card.html
Last active December 5, 2017 20:32
Giant panda card Project solution for Udacity project for Animal trading card// https://codepen.io/desinas/pen/JOxWqG?editors=1100
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Giant panda</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="card-backgr">
<!-- your favorite animal's name goes here -->
@desinas
desinas / index.html
Last active December 4, 2017 11:10
Web Dev Blog Post project from Udacity lesson 3// source https://jsbin.com/yuqonit/edit?html,output
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Web Dev Blog Post</title>
</head>
<body>
<!-- This is adapted from: http://blog.udacity.com/2016/01/hottest-jobs-in-2016-2-web-developer.html -->
<!-- Format the text below! -->
<h1>Hottest Jobs in 2016 #2: Web Developer</h1>
@desinas
desinas / index.js
Last active December 12, 2023 20:17
JavaScript intro to functions Mocha tested by Flatiron School, learn.co
// describe('shout(string)', function() {
// it('receives one argument and returns it in all caps', function() {
// expect(shout('hello')).toEqual('HELLO')
// })
// })
function shout (aWord) {
return aWord.toUpperCase( );
}
// describe('whisper(string)', function() {
@desinas
desinas / mad-libs.js
Created December 8, 2017 15:37
Data types and Variables example Udacity plus extra example
/*
* Programming Quiz: MadLibs (2-11)
*
* 1. Declare a madLib variable
* 2. Use the adjective1, adjective2, and adjective3 variables to set the madLib variable to the message:
*
* 'The Intro to JavaScript course is amazing. James and Julia are so fun. I cannot wait to work through the rest of this entertaining content!'
*/
@desinas
desinas / quizMurderMystery.js
Last active October 23, 2024 15:32
Murder Mystery Quiz (3-4) Udacity Lesson 12
/*
* Programming Quiz: Murder Mystery (3-4)
*/
// change the value of `room` and `suspect` to test your code
var room = "dining room";
var suspect = "Mr. Parkes";
var weapon = "";
var solved = false;