update
This commit is contained in:
rodič
51a11e4335
revize
296488d3e2
|
@ -1,4 +1,8 @@
|
|||
const getDateIntArr = () => Date.now().toString().split("").reverse().map(d => parseInt(d))
|
||||
function roundToNearestMinute(date = new Date()) {
|
||||
const timefraction = 1000 * 10;
|
||||
return Math.round(date.getTime() / timefraction) * timefraction;
|
||||
}
|
||||
const getDateIntArr = () => roundToNearestMinute().toString().split("").reverse().map(d => parseInt(d));
|
||||
|
||||
class MyRandom {
|
||||
constructor() {
|
||||
|
@ -13,12 +17,14 @@ class MyRandom {
|
|||
if (newVal > 9) {
|
||||
newVal = newVal % 10;
|
||||
}
|
||||
return newVal;
|
||||
return 0.5 - (newVal / 10);
|
||||
});
|
||||
|
||||
this.seed.push(this.seed.shift());
|
||||
//console.log(this.seed);
|
||||
//console.log(roundToNearestMinute(), Date.now())
|
||||
|
||||
return this.seed[0];
|
||||
return this.seed;
|
||||
}
|
||||
};
|
||||
export const prng = new MyRandom().generate()
|
||||
export const prng = new MyRandom().generate();
|
|
@ -17,10 +17,12 @@
|
|||
// const result = await graphdata('json');
|
||||
// if (result) data.contributors = result.contributors;
|
||||
// });
|
||||
|
||||
let innercount = 0;
|
||||
$: filteredContributors = data.contributors
|
||||
.filter((c) => data.type === 'all' || c.roles.includes(data.typeConfig.role))
|
||||
.sort((a, b) => 0.5 - Math.random())
|
||||
.sort((a, b) => {
|
||||
return 0.5 - Math.random();
|
||||
})
|
||||
.map(wrapContributor);
|
||||
</script>
|
||||
|
||||
|
@ -62,7 +64,11 @@
|
|||
{/each}
|
||||
</h3>
|
||||
<div class="flex flex-row mb-2">
|
||||
<a class="text-lg flex justify-center text-white font-medium title-font" href={item.link} target="_blank">
|
||||
<a
|
||||
class="text-lg flex justify-center text-white font-medium title-font"
|
||||
href={item.link}
|
||||
target="_blank"
|
||||
>
|
||||
{item.name}
|
||||
{#if item.nickname}
|
||||
({item.nickname})
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
export let data;
|
||||
const today = new Date().getDay();
|
||||
let selectedDay = today === 5 || today === 6 || today === 0 ? today : 6;
|
||||
let selectedDay = today === 5 || today === 6 || today === 0 ? today : 5;
|
||||
//let selectedDay = 6;
|
||||
$: filteredEvents = data.events.filter((c) => {
|
||||
let evtDate = new Date(c.datetime).getDay();
|
||||
|
|
|
@ -79,6 +79,10 @@ price: 70eur
|
|||
Spacious, air-conditioned rooms overlook the town square, the Cathedral of Saints Peter and Spilberk Castle, featuring a flat-screen satellite TV and a seating area. The bathrooms include bathrobes. It is 50 m to the nearest tram stop, and Brno Train Station is 400 m away. Airport shuttle service available.
|
||||
|
||||
|
||||
### Map and tips from locals
|
||||
|
||||
[Here](https://www.use-it.travel/cities/map/2022_brno/) you can find a map of Brno with no-nonsense usefull tips. Made by local volunteers, non-commercial, free and up-to-date.
|
||||
|
||||
---
|
||||
|
||||
## Hackathon
|
||||
|
@ -92,5 +96,5 @@ Our amazing mentors are here to discuss anything related to your project. Not ju
|
|||
If you’re missing team-mates or ideas for projects we’ve got you covered. You can start by writing into the **Find-a-team** chat on our [Matrix](https://matrix.to/#/#ethbrno:gwei.cz). Introduce yourself, discuss ideas, see what others are up to… There will also be a **Team-building session**, which will take place after the opening ceremony of Friday night. No need to prepare anything, just turn up. This session will be followed by a short **Brainstorm**, that you can also attend. We will take you and your team through a couple of exercises, which should lead you to at least one solid project idea. Then you’ll have everything to start your weekend of hacking!
|
||||
|
||||
### <i class='icon coffee'></i> Catering
|
||||
We will take care of your meals and drinks for the entire Hackathon, conference and coffee breaks. There will be vegan options provided. Just come with an open mind, a knowledge-thirsty brain and enthusiasm.
|
||||
We will take care of your meals and drinks for the entire Hackathon, conference and coffee breaks. There will be vegetarian options provided. Just come with an open mind, a knowledge-thirsty brain and enthusiasm.
|
||||
|
||||
|
|
Načítá se…
Odkázat v novém úkolu