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
Show hidden characters
{ | |
//----------------beginning of editor settings--------------------\\ | |
"editor.comments.ignoreEmptyLines": false, | |
"editor.trimAutoWhitespace": false, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.definitionLinkOpensInPeek": true, | |
"editor.fastScrollSensitivity": 9, | |
"editor.suggest.shareSuggestSelections": true, | |
"editor.fontSize": 12, | |
"editor.fontFamily": "Consolas, 'Courier New', monospace", |
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
/* @import url(https://fonts.googleapis.com/css?family=Raleway); */ | |
@import url(https://fonts.googleapis.com/css?family=Ubuntu); | |
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono); | |
/* Use Ubuntu font instead of the default Railway font */ | |
body { | |
font-family: Ubuntu; | |
margin: 2rem; | |
font-size: 2rem; | |
} |
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
#!/usr/bin/env python3 | |
# --- | |
# -handle symlinked files and folders: displayed with custom icons | |
# By default only the current folder is processed. | |
# Use -r or --recursive to process nested folders. | |
import argparse |
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
// Given an array nums, and a value val, write a function to remove | |
// all instances of val from the array and return the new length | |
const removeValInstances = (arr, val) => { | |
if(!arr) return 0; | |
if(!Array.isArray(arr)) return 0; | |
if(!val) return arr.length; | |
let newArrLength = 0; |
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
runByFeatures(features) { | |
if (features.type !== "Feature") return undefined; | |
let polygon = turf.polygon(features.geometry.coordinates); | |
const unitsOption = {units: 'kilometers'}; | |
let polyline, length, bbox, percentage1, percentage2, fraction, point1, point2, bearing; | |
let point1a, point1b, point2a, point2b, line1, line2; | |
let largest, diagonalLength; | |
polyline = turf.polygonToLineString(polygon); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import re | |
def get_file_content(include_tag): | |
file_name = include_tag.split(" ")[1].split("=")[1].replace('"', "") | |
return open(file_name).read() | |
def main(): | |
""" |
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
import { Component } from "react" | |
import './Table.css'; | |
class TableComponent extends Component{ | |
render(){ | |
return( | |
<div> | |
<table> | |
<tr> | |
<th>Company</th> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
with open("model_dictionary.json",'w') as f: | |
json.dump(model_dict,f) | |
f.close() | |
with open("company_dictionary.json",'w')as f: | |
json.dump(company_dict,f) | |
f.close() | |
with open("fuelType_dictionary.json",'w') as f: | |
json.dump(fueltype_dict,f) | |
f.close() | |
with open("transmission_dictionary.json",'w')as f: |
NewerOlder