Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@enod
enod / stora_faq.txt
Last active February 6, 2025 23:14
Stora FAQ
Захиалга хэр хурдан ирдэг вэ?
Амазоноос манай Америк дахь агуулахад ирсэн тухайн долоо хоногийн Пүрэв гарагт агаараар Монгол руу илгээгдэж, 2 долоо хоногийн дотор ирж байна.
Stora.mn -ээс хэрхэн бараагаа хайх вэ?
Та stora.mn -ээр зочлон өөрийн сонирхож буй барааны загварын нэрийг манай сайтаас хайх, эсвэл амазон дахь барааны линкийг манай сайтын хайлт хэсэгт хуулж тавьснаар барааг харж, үнэ, хүргэлтийн тов зэрэг дэлгэрэнгүй мэдээлэл авах боломжтой.
Ямар бараа захиалж болохгүй вэ?
Монгол Улсын хилээр нэвтрүүлэхийг хуулиар хориглосон, хязгаарласан бараа, агаарын ачаанд хориглосон барааг захиалах боломжгүй.
import processing.pdf.*;
void setup() {
size(400, 400);
background(255);
noFill();
stroke(0);
strokeWeight(20);
noLoop();
}
@shahramsamar
shahramsamar / clean_code.md
Created February 6, 2025 23:11 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

module Calendar::CalendarHelper
def calendar(month = Date.today)
start_date = month.beginning_of_month.beginning_of_week(:sunday)
end_date = month.end_of_month.end_of_week(:sunday)
# Create the weeks for the calendar
(start_date..end_date).to_a.in_groups_of(7)
end
def calendar_date_background(date)
@cecyramallo
cecyramallo / application.css
Created February 6, 2025 23:09
Livecode_JavaScript_06-02-2025
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
}
table {
width: 428px;
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 24 (Failed: 1, Cancelled 0), Incomplete: 1, Skipped: 7
[set-github-started-label : post-comment] + EXTRA_ARGS=
[set-github-started-label : post-comment] + [[ ! -z operator-release-pipeline/started ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --add-labels operator-release-pipeline/started'
[set-github-started-label : post-comment] Editing GitHub labels to PR https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/5908
[set-github-started-label : post-comment] + [[ ! -z pipeline/trigger-release ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-labels pipeline/trigger-release'
[set-github-started-label : post-comment] + [[ true == \t\r\u\e ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-matching-namespace-labels'
@shileiwill
shileiwill / encrypted.secrets.json
Created February 6, 2025 23:09
Encrypted secrets for DON
{
"encryptedSecrets": {
"029b7fa1ffec69740865a6af64d6a1687adcca14b85551e97d4e94940e60f3b1": "ldjKe6xlf+XMdit04n98pjnowRmNS9mZehl9IdaZTUOBSMOHybMBebZPHxWCj1ZEacwjB3q9VbQSy1CwzXSe7TkrCcZ5AVnKxFtYY5ZOVvW4s6iQ3rb9CU8DhAQIzNJRrZJ3OdzuPJZdz8XbiyBKuqVtcW8SoKSMjKVZZJrE1pCT7mBwf5fPD4JoMA2yq7fgFRY4RUtXl7xgr/kYL78k0dXPn1Z5Ma3zgdnmRIpg/jBIywfgpOqig3sdX/JSk7NGLA1hYY3SeNiRCbeYyOygt3cweqc0vX+Clby8nrkgzkKfcKLaQ9514gbI",
"14765ebdda103e5a5cc8847987d8039ebe828769bcf87b8faffdb2bf99dca511": "9xDF9OILXNa7bZN7p6fTc9XW+sddI4mXzZtRCcN8VnnYYvZW/guipCuX4ycn9DN6Y+RsluB1Hput1sm7ZwBh8OOSXqCVX++9Dgq9/xu1I/S1DbaD5tcBJmLsSnT9m4oDKURTnAKMtUapsTekDWPKqNjpyRVhE1KSrNyR/RguQ1qagxEtAsxFEy/AuDuMWXD01UBgpaeYY5XYuvYb0LiuiNS3prC5GVRlPjLyTGRIuFEYjAFkHCGOsEInYMopdzT6fwN8trXeX5YbP/0AoYGkE48xUFrYH7z1f9FoYsWXW3xCJ04vTGtCT5QO",
"1b53eb3a8c18431a00b3f68738f362d32b41e8a563c607ca8610ca59fa1d9aef": "M7nzHL4LFnthkBbAbF4SN2Znc2nPEtx3ST36GQ8fG1oLGWUtuK6JzSzcBlz5VIs99Ae7iznptkxjC6VxKEHjHQt8oT+tqGVwnPiYZwVjnJpMzK8wxl6NJbQRDQCJgJJFiZjNDHdzoz+g73oAxYRLg
@wecing
wecing / gist:3123c1a85c6e52794b034d7f7247148e
Created February 6, 2025 23:09
compile MLIR with cmake / bazel
cd llvm-project
# bazel
cd utils/bazel
bazel build @llvm-project//mlir/... # --action_env=BAZEL_CXXOPTS='-std=c++17'
# cmake - see https://mlir.llvm.org/getting_started/
mkdir build
cd build
cmake -G Ninja ../llvm \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.