Skip to content

Instantly share code, notes, and snippets.

View akaomy's full-sized avatar
🏍️

Anna K. akaomy

🏍️
View GitHub Profile
<!-- not responsive -->
<head>
<meta charset="UTF-8">
<title>CSS drop down menu</title>
<link rel="stylesheet" type="text/css" href="drop_down2.css">
</head>
<body>
<div class="nav">
@akaomy
akaomy / README.md
Created November 18, 2015 20:02 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@akaomy
akaomy / Check for type
Last active December 7, 2015 17:43
JavaScript exercises
var a = []
if (abc instanceof Array){
console.log('true')
}
=> true
______________________________
@akaomy
akaomy / Numbers, Infinity, NaN
Last active December 9, 2015 16:47
Java Script Exercises part 2
//function to uppercase
var stri = "hello"
console.log(stri.toUpperCase());
//function toFixed
var number = 32.444323;
console.log(number.toFixed(4));
//hexadecimal notation system
var sixthNum = 0xff;
@akaomy
akaomy / gist:503611bd353aa9f95f48
Last active December 10, 2015 23:39
Template
var myModule = ( function(){
var init = function() {
_setUpListeners();
// this is what whould happens imedialty
};
var _setUpListeners = function() {
//event listener
}
class Dog extends Animal { // inheritance
int age;
// constructor
public Dog(int dogsAge) {
age = dogsAge;
}
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
@akaomy
akaomy / ex22
Created October 20, 2016 21:24
go back through every exercise you have done so far and write down every word and symbol
(another name for "character") that you have used.
Make sure your list of symbols is complete.
Next to each word or symbol, write its name and what it does.
print() - The print() function writes the value of the argument(s) it is given
# - one line comment
""" """ - multiple lines comment
+ - addition
@akaomy
akaomy / gist:9432e09113d93bea1c49aaf0d1ade8b9
Created April 4, 2017 17:49
first two arduino projects
// LED will fade out not just turning on and off
int led = 13;
int brightness = 0;
int fadeAmount = 5;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(9600); //creates serial connection; sends text output to a terminal
}
// the loop routine runs over and over again forever:
void loop() {
int sensorValue = analogRead(A0); // analog pin zero
Serial.println(sensorValue); // print out value - light intensity value