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
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/sts" | |
) |
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
v1 = [0.26846325,-0.23716052,0.12526867,0.32631156,0.00271839,-0.15222456,0.0994423,0.029955126,-0.122345164,0.1471219,-0.21663578,0.026418457,-0.3318971,-0.22675303,-0.31663033,0.17021269,-0.055501137,-0.39970714,-0.43330708,0.45532298,-0.33721516,0.38136917,0.35704952,-0.2272793,0.47840014,-0.41730675,-0.18318379,0.13899536,-0.048481084,-0.045316998,-0.428223,0.18878391,-0.11361246,-0.45341256,-0.3368711,0.054998204,-0.3113023,0.27800632,-0.09334432,-0.15471956,0.3510938,0.056814115,0.09321978,0.4440934,0.20632029,-0.37737522,0.053021237,-0.07549514,-0.12274457,0.23113023,0.20638718,0.28597355,-0.062226374,0.08098808,0.44468316,0.53276044,0.07326027,-0.11226646,0.405268,-0.014123329,0.047007527,0.15027393,-0.271591,-0.057938274,-0.012191469,-0.026369505,0.31744948,-0.34761363,0.349972,-0.30041802,-0.136215,-0.4288606,-0.6118515,0.110463955,0.11154631,0.018595466,-0.19540755,0.2054163,-0.09800551,0.43624032,0.16442421,-0.13759008,-0.32345447,-0.26609316,0.15164512,-0.20274676,-0.2576618,-0.03917401,-0.258845 |
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
mosey /ˈməʊzi/ - v. (inf.) walk or move in a leisurely manner | |
vamoose /vəˈmuːs/ - v. (inf.) depart hurriedly (from Spanish vamos ‘let us go’) | |
blowout /ˈbləʊaʊt/ - n. (inf.) a large or lavish meal or social gathering | |
skeevy /ˈskiːvi/ - adj. (n. am., inf.) unpleasant, squalid, or distasteful | |
macushla /məˈkʊʃlə/ - (irish.) an affectionate form of address (from Irish mo ‘my’ + cuisle ‘pulse’ (of the heart)) | |
give one the big eye - v. look at someone in flirtatious way | |
metanoia /ˌmɛtəˈnɔɪə/ - n. change in one's way of life resulting from penitence or spiritual conversion (f. Greek 'metanoein': ‘change one's mind’) | |
pabulum - food (from Latin) | |
disjoint /dɪsˈdʒɔɪnt/ - adj. (math.) (of two or more sets) having no elements in common | |
monies - n. plural form of "money", as used in financial contexts |
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
public static void main(String[] args) { | |
Set<Student> set = new HashSet<Student>(); | |
Student s = new Student("Маша", "Иванова"); | |
set.add(s); | |
s.setName("Даша"); | |
set.add(s); | |
System.out.println(set.size()); | |
} | |
class Student{ |
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
import scala.collection.mutable.ArrayBuffer | |
def merge1Immutable(ls: Array[Char]): Array[Char] = { | |
if (ls.isEmpty) ls | |
else { | |
var size = 1 | |
var globalCh: Char = ls.head | |
val resLs = ArrayBuffer[Char]() | |
for (i <- 1 until ls.length) { | |
val ch: Char = ls(i) |
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
####### Set Up ######## | |
# From https://github.com/mathiasbynens/dotfiles/blob/master/.macos : | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
###### Install software ###### | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install coreutils # gnu tools - everything has prefix g* - gsed, etc. |
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
#!/usr/bin/env bash | |
# To run at startup: | |
# sudo defaults write com.apple.loginwindow LoginHook `pwd`/remap.sh | |
# https://developer.apple.com/library/content/technotes/tn2450/_index.html | |
CAPS_LOCK="0x700000039" | |
ESCAPE="0x700000029" | |
NON_US_BACKSLASH_PLUS_MINUS="0x700000064" | |
GRAVE_ACCENT_AND_TILDE="0x700000035" | |
SLASH_PIPE="0x700000031" | |
ENTER_RETURN="0x700000028" |
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
<?xml version="1.1" encoding="UTF-8"?> | |
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 3.2.7.195 on 2017-11-17 at 18:42 (GMT+2)--> | |
<keyboard group="126" id="-6049" name="Ukrainian" maxout="1"> | |
<layouts> | |
<layout first="0" last="0" mapSet="138" modifiers="30"/> | |
</layouts> | |
<modifierMap id="30" defaultIndex="5"> | |
<keyMapSelect mapIndex="0"> | |
<modifier keys="option command? control"/> |
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
m1 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
m2 = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
mon_sy = { | |
1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", | |
7: "July", 8: "August", 9: "September", 10: "October", 11: "November", | |
12: "December"} | |
leap = [year for year in range(1904, 2001, 4)] | |
def months(): |
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
"Vim, not vi set nocompatible | |
"sets the language of the menu (gvim) | |
set langmenu=en_US.UTF-8 | |
"sets the language of the messages / ui (Vim) | |
language messages en | |
"Remove ALL autocommands for the current group | |
autocmd! | |
"automatically use system clipboard | |
set clipboard=unnamed | |
"Disable cursor blinking |