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
#!/bin/bash | |
# Set default paths and URLs | |
DOWNLOADS_DIR="$HOME/Downloads" | |
APPLICATIONS_DIR="$HOME/.local/bin" # More appropriate location for AppImages | |
ICON_URL="https://www.cursor.com/apple-touch-icon.png" | |
APPIMAGE_URL="https://downloads.cursor.com/production/61e99179e4080fecf9d8b92c6e2e3e00fbfb53f4/linux/x64/Cursor-0.48.9-x86_64.AppImage" | |
ICON_FILENAME="cursor-icon.png" | |
APPIMAGE_FILENAME="Cursor-0.48.9-x86_64.AppImage" | |
DESKTOP_FILE="$HOME/.local/share/applications/cursor-editor.desktop" |
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 { KeyValuePipe } from '@angular/common'; | |
import { Component } from '@angular/core'; | |
import { FormControl, ReactiveFormsModule } from '@angular/forms'; | |
import { z } from 'zod'; | |
import { zodValidator } from './validators/zod.validator'; | |
@Component({ | |
standalone: true, | |
imports: [ReactiveFormsModule, KeyValuePipe], | |
selector: 'app-root', |
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
""" New: '9.8.22', Old: '9.9.3' """ | |
async def diff_miui_updates(new, old): | |
""" diff miui updates to get the changes """ | |
changes = {} | |
if not old: | |
return changes | |
for item in new: | |
for old_item in old: | |
if old_item['codename'] == item['codename'] and item['version'] != old_item['version']: | |
is_new = None |
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
/* | |
Built as part of @seb_ly's two-day Creative JavaScript class: | |
http://creativejs.com/ | |
http://sebleedelisle.com/training/ | |
October 18, 2011 by Jim Webb, jim@jimwebb.com | |
This includes lots of @seb_ly's code. Thanks. |
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 | |
# | |
# Author: Stefan Buck | |
# License: MIT | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner |
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
/*! | |
diff v2.0.1 | |
Software License Agreement (BSD License) | |
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com> | |
All rights reserved. |
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
# create sdk folder | |
export ANDROID_HOME=/opt/android-sdk-linux | |
sudo mkdir -p $ANDROID_HOME | |
# install openjdk | |
sudo apt-get install openjdk-8-jdk | |
# download android sdk | |
cd $ANDROID_HOME | |
sudo wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip |