This file contains hidden or 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
| ``` Downloading Data from ArcGIS ``` | |
| from arcgis.gis import * | |
| import os | |
| from zipfile import ZipFile | |
| # GIS Datset ID | |
| public_data_item_id = 'a04933c045714492bda6886f355416f2' | |
| # Rando GIS connection object | |
| anon_gis = GIS() |
This file contains hidden or 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
| class Character { | |
| constructor(x, y) { | |
| this.x = x; | |
| this.y = y; | |
| this.health_ = 100; | |
| } | |
| damage() { | |
| this.health_ = this.health_ - 10; | |
| } |
This file contains hidden or 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
| // | |
| task copyImages(type: Copy) { | |
| from 'images' | |
| into 'build' | |
| dependsOn = [ "copJpegs", "copyBmps", "copyPngs"] | |
| } | |
| task copyJpegs(type: Copy) { | |
| from 'images' | |
| include '*.jpg' |
This file contains hidden or 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
| # Quick list of neo4j queries I'm trying out | |
| # Keywords for querying are MATCH, WHERE, RETURN, ORDERBY, and SKIP|LIMIT | |
| Match(actor:Person)-[ACTED_IN]->(movie {title: 'Cloud Atlas'}) | |
| Where actor.name = "Tom Hanks" | |
| return actor; | |
| Match(actor:Person)-[ACTED_IN]->(movie {title: 'The Matrix'}) | |
| return actor.name; |
This file contains hidden or 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
| TODO: | |
| Things to get from Spotify GET api.spotify.com/track: | |
| Song track( the track object ) | |
| Artist name(get that out of the track object: aka track.artist.name or track.artist.id) | |
| Things to query from Soundkick | |
| response = GET ( http://api.songkick.com/api/3.0/search/artists.json?query={artist name from spotify track object}&apikey={your_api_key}: |
This file contains hidden or 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
| <?hh | |
| //Lambdas in Hack | |
| function vector_add1(Vector<int> $v): Vector<int> { | |
| // Example of lambda expressions. | |
| return $v->map($x ==> $x + 1); | |
| } | |
| function vector_mult2(Vector<int> $v): Vector<int> { | |
| // lamba multiplying all the elements by 2 | |
| return $v->map($n ==> $n *2); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <style> | |
| body { | |
| font-family: Verdana; | |
| } | |
| h1, h2, h3 { | |
| color: darkblue; | |
| } |
This file contains hidden or 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
| { | |
| "name": "string", | |
| "type": "Microsoft.ContainerInstance/containerGroups", | |
| "apiVersion": "2018-10-01", | |
| "location": "string", | |
| "tags": {}, | |
| "identity": { | |
| "type": "string", | |
| "userAssignedIdentities": {} | |
| }, |
This file contains hidden or 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
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Data; |
This file contains hidden or 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
| read X | |
| read Y | |
| if [ $X -gt $Y ]; then | |
| echo "X is greater than Y"; | |
| elif [ $X -eq $Y ]; then | |
| echo "X is equal to Y"; | |
| else | |
| echo "X is less than Y"; | |
| fi |
NewerOlder