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
function Start-Fedora { vboxmanage startvm Fedora } | |
function Stop-Fedora { vboxmanage controlvm Fedora poweroff } | |
function List-VMs { vboxmanage list vms } | |
Set-Alias -Name startfedora -Value Start-Fedora | |
Set-Alias -Name stopfedora -Value Stop-Fedora | |
Set-Alias -Name listvms -Value List-VMs | |
<# | |
Pre-requisites: |
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
from dataclasses import dataclass | |
import sys | |
@dataclass | |
class Game: | |
locations:tuple = ('Farmer', 'Goat', 'Wolf', 'Cabbage') | |
farmerLoc:str = 'L' | |
goatLoc:str = 'L' | |
wolfLoc:str = 'L' | |
cabbageLoc:str = 'L' |
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
#python3 | |
from PIL import Image | |
import os | |
def resizer(images_to_resize, x, y): | |
""" | |
To resize images. | |
:param images_to_resize : for an array of image names | |
:param x : User defined width value to resize to |
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
# ChocoInstallBase.ps1 by Q (forked from atwork.at) | |
# Get Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# See packages at https://chocolatey.org/packages/ | |
# Comment (add #) or uncomment (remove #) to include or exclude from your base install | |
# Use according to your own needs... | |
# Essentials | |
choco install veracrypt -y |
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
name: Quasar Android Build | |
on: | |
push: | |
branches: [ master, dev ] | |
tags: 'v*' | |
pull_request: | |
branches: [ master, dev ] | |
tags: 'v*' |
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 necessary stuff | |
const { | |
dialogflow, | |
Carousel, | |
Image | |
} = require('actions-on-google'); | |
const functions = require('firebase-functions'); | |
// Enable debugging |
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 necessary stuff | |
const { | |
dialogflow, | |
Carousel, | |
Image | |
} = require('actions-on-google'); | |
const functions = require('firebase-functions'); | |
// Enable debugging |
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
function findLineByLeastSquares(values_x, values_y) { | |
var sum_x = 0; | |
var sum_y = 0; | |
var sum_xy = 0; | |
var sum_xx = 0; | |
var count = 0; | |
/* | |
* We'll use those variables for faster read/write access. | |
*/ |
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
Using x86_64 syscall table: | |
0 read | |
1 write | |
2 open | |
3 close | |
4 stat | |
5 fstat | |
6 lstat | |
7 poll | |
8 lseek |