This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("#weather_button").click(function(e) { | |
console.log(e) | |
e.preventDefault(); | |
$.ajax({ | |
type: "POST", | |
data: 'json', | |
url: 'https://api.openweathermap.org/data/2.5/weather?zip=98229,us&appid=539756b83366c299af98e440614ce980', | |
success: function(result) { | |
console.log(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function simple() | |
{ | |
echo 'git rebase is great' | |
mkdir gitexample | |
cd gitexample | |
git init | |
mkdir lib | |
touch lib/my_thing.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESP8266 Blink by Andrew Stuntz | |
The LED is connected to GPIO pin 5 in this case. | |
Written for the ESP8266 ESP-07 version of this board. | |
*/ | |
void setup() { | |
pinMode(5, OUTPUT); // Initialize the LED_BUILTIN pin as an output | |
Serial.begin(115200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 8x8 LED array test1 | |
* display a line of lights moving around the perimeter of the 8x8 matrix | |
*/ | |
// Arduino pin definitions - (ordered to keep wiring tidy) | |
int row[] = {14,10,4,12,9,5,8,6}; //rows - driven LOW for on | |
int col[] = {17,16,13,2,15,3,7,11}; //columns - driven HIGH for on | |
// give our moving light a tail? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This Arduino code for "4-digit-7-segment-led-display" (KYX-5461AS). | |
* This code can display one Number in all 4 digit! | |
* This code can display 4 Numbers each on in specific digit | |
* This code can also make a Number Countdown (Timers). | |
author : Oussama Amri (@amriunix) | |
website : ithepro.com | |
*/ | |
//display pins |
OlderNewer