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/sh | |
#ifconfig | |
#dhclient -r wlp7s0 | |
#dhclient wlp7s0 | |
ADAPTER_ID=$(ifconfig | grep -o "\w*wl\w*") | |
if [ -z "$ADAPTER_ID" ] | |
then | |
echo "No wl* adapters found" | |
else |
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
using System; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
/** | |
* Usage |
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 timeit | |
COUNT = 1000 | |
CITIES = [] | |
for i in range(COUNT): | |
CITIES.append("city_" + str(i)) | |
def testWithoutTuples(cities): | |
res = 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
/*** | |
Extra task. Write method that takes two sorted arrays of integers (can be of any range, numbers can | |
repeat, sizes of arrays can be different) and returns array of n + m length which is sorted in the same | |
order. Do not use any type of built-in sorting. | |
*/ | |
function sort(array1:Array, array2:Array):Array{ | |
if(array1.length === 0) return array2; | |
if(array2.length === 0) return array1; | |
var compare:Function = (array1[0] < array1[array1.length - 1] || array2[0] < array2[array1.length - 1] ) ? isSmaller : isBigger; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" /> | |
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap.js"></script> | |
<meta charset=utf-8 /> | |
</head> | |
<body> | |