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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
""" | |
*************************************************************************** | |
* Copyright (c) <mario52> 2014 2015 2016 2017 2018 2019 2020 2021 2022 * | |
* 2023 * | |
* This file is a supplement to the FreeCAD CAx development system. * | |
* * | |
* This program is free software; you can redistribute it and/or modify * | |
* it under the terms of the GNU Lesser General Public License (LGPL) * |
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
interface FileListHelper { | |
empty: () => globalThis.FileList, | |
fromFiles: (files: File[]) => globalThis.FileList | |
} | |
class FileList { | |
private readonly files: File[]; | |
public length: number; | |
constructor (files?: File[]) { | |
this.files = files || []; |
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 | |
getopts 'y' YES | |
sudo paccache -rk1 | |
sudo paccache -ruk0 | |
sudo pacman -Sy archlinux-keyring && sudo pacman -Su | |
sudo pacman -Syu | |
[[ "$YES" = "y" ]] && aur="y" || read -rp "Proceed with AUR update? (y/N) " aur </dev/tty | |
if [[ "$aur" = "y" ]]; then |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $file = shift @ARGV; | |
# open (read) file from command line argument | |
open(my $jsfile, '<', $file) or die "Can't read file '$file' [$!]\n"; | |
# undef the line separator ($/) for this script, to grab the whole file | |
local $/; | |
# read file |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1 | |
mQINBFRvqBkBEADAe63Jl0pw5Ry9LDwn31BJSBat+2WYJXT4Iqsgtmm79drvAcVU | |
JjtGZX11XdJj/aIVxeafghYxVj4Ld+yxiB25GAcxGr5O3Acv7DOlBQnqFZ7jvZUd | |
qwSCpsoDoBt5rX+FlHl/NB8VGjpS0cgC+wuSrLRW6Qux0/tn2Dow7KzB5B7YvaCi | |
ChF2M7ZPJhhp5QGoI+ucEwSJ/NIeOguZWiOEl+Tbglz5YTHuVjZViNIX4Xdw+N7l | |
1//oR8k/GEWuVU4dFsWmc6UCEClCotYHXoPHHGJpIUDBMk3sU5v3ULjKcIDkHOHX | |
qu91lk9OEdteieWS6npsuyy2pOOgRgXKxi1mAc7jPTLejT2GTCoUl6anP6/MbMdC | |
uMww1TadVaVTnw7zxW0t/uQ97wr1YtwnB6mLdfgCbUTtXMoFdijGJx+k/qb4cmmr |
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 React, { Component, PropTypes } from 'react'; | |
import { | |
bold, | |
italic, | |
underline, | |
strikethrough, | |
superscript, | |
subscript, | |
unordered, | |
ordered, |
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
if StatisticCustomAggregation.count == 0 | |
# available reservations hours for machines | |
machine_hours = StatisticType.find_by(key: 'hour', statistic_index_id: 2) | |
available_hours = StatisticCustomAggregation.new({ | |
statistic_type_id: machine_hours.id, | |
es_index: 'fablab', | |
es_type: 'availabilities', | |
field: 'available_hours', |