Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
function sortIt(givenList){ | |
for(var i=0;i<givenList.length;i++){ | |
var remainingArray = givenList.slice(i) | |
var minValue=Math.min.apply(i, remainingArray) | |
var indexOfMinValue = remainingArray.indexOf(minValue) | |
// console.log(minValue) | |
var old_index=i+indexOfMinValue | |
var new_index=i | |
//swap elements of old and new index | |
//old index element and new index element, old index is the index of min value element |
countLayers(List rug) { | |
int count = 0; | |
List listOfLists = []; | |
for (int j = 0; j < rug.length; j++) { | |
listOfLists.add(rug[j].split('').toList()); | |
} | |
// print(listOfLists); | |
String selectedCharacter = listOfLists[0][0]; | |
while (!listOfLists.every((subList) => subList.isEmpty)) { | |
listOfLists.forEach( |
void main() { | |
List list1 = [1, 2, 3, 4, 5, 6, 7]; | |
List list2 = [11, 12, 13]; | |
int index = 6; | |
list2.forEach((item) { | |
list1.insert(index, item); | |
index++; | |
}); | |
print(list1); | |
var titleYear = 'Hello there, how are you (2005)'; |
import 'dart:io'; | |
import 'dart:ui'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:hackertimes_app/hackerSpinner.dart'; | |
import 'package:hackertimes_app/utility_class.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import '../network_services.dart'; |
{ | |
"version":1.05, | |
"url":"https://www.google.com", | |
"msg":"States Data Now Available" | |
} |
const axios = require('axios').default; | |
async function getTotalPriceInBaseCurrency(groceryList, currency, date) { | |
// console.log(groceryList) | |
let groceryItemPattern = RegExp(/(.*)\w+/gm); | |
groceryList = groceryList.replace("$", "USD").replace("€", "EUR").replace("₹", "INR").replace("£", "GBP").replace(",", "").match(groceryItemPattern) | |
console.log(groceryList) | |
let currencyPattern = RegExp(/([A-Z]{3} ?)\d?\w+/gm) //group0 selects currency only | |
let detailedGroceryList = []; |
function minInterval(tasks, n) { | |
let lastNtasks = []; | |
let taskOccurrence = new Map(); | |
tasks.forEach((task) => { | |
taskOccurrence.set(task, (taskOccurrence.get(task) || 0) + 1) | |
}) | |
let entries = Array.from(taskOccurrence.entries()) | |
let count = 0; |
class QueenAttack { | |
constructor(position) { | |
this.white=position.white; | |
this.black=position.black; | |
} | |
toString() { | |
let res = new Array(8).fill(new Array(8).fill('_')); | |
res[this.white[0]][this.white[1]] = 'W'; | |
res[this.black[0]][this.black[1]] = 'B'; | |
return res.map(s => s.join(' ') + '\n').join(''); |