Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
// modules.js | |
const Modules = (function() { | |
const config = { base: '' } | |
const modulesPromises = {} | |
function loadModule(url) { | |
if (modulesPromises[url]) return modulesPromises[url] | |
return modulesPromises[url] = new Promise((res, rej) => { | |
ajaxGET(config.base + url, (moduleText) => { |
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
title: МЕН-АБ-1 РАСПИСАНИЕ | |
days: | |
mon: | |
- odd: [ "8:30", Экономическая теория (лекция), СТР-321] | |
evn: [ "8:30", Технологии креативности, СТР-327] | |
- odd: ["10:10", Экономическая теория (лекция), СТР-321] | |
evn: ["10:10", Технологии креативности, СТР-327] | |
- ["12:10", Экономическая теория, СТР-321] | |
- evn: ["13:50", Экономическая теория, СТР-321] |
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
title: ВТ-15 | |
days: | |
mon: | |
- evn: [ "8:30 - 9:50", Матем. логика и теория алгоритмов, 508] | |
- [ "10:05 - 11:25", Матем. логика и теория алгоритмов, 410] | |
- odd: [ "12:10 - 13:30", Алгебра и геометрия (практика), 5.518] | |
evn: [ "12:10 - 13:30", История и культура Украины (практика), 5.211] | |
- [ "13:45 - 15:01", Правоведение, 5.211] |
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
#EXTM3U | |
#EXTINF:-1,BBC Radio 1 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p | |
#EXTINF:-1,BBC Radio 2 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p | |
#EXTINF:-1,BBC Radio 3 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p | |
#EXTINF:-1,BBC Radio 4 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p | |
#EXTINF:-1,BBC Radio 5 live |
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
package com.company; | |
import java.util.Random; | |
public class Main { | |
public static int minindx(int u[],int y){ | |
int minIndex = y; | |
for(int i=y;i<u.length;i++){ | |
if(u[minIndex] > u[i]){ | |
minIndex = i; |
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/bash | |
# Applies the Monokai color scheme to the current terminal session. | |
declare -A map0 | |
map0=( [foreground ]='#F8F8F2' [background ]='#272822' | |
[cursor ]='#F8F8F0' [selection ]='#49483E' | |
[pink ]='#F92672' [green ]='#A6E22E' | |
[yellow ]='#E6DB74' [blue ]='#66D9EF' | |
[purple ]='#AE81FF' [orange ]='#FD971F' | |
[gray ]='#75715E' ) |