For Hex editor
sudo apt-get install bless
Create a file using vi msg.txt
and save the file after writing some contents.
from mckinseysolvegame import Species | |
from mckinseysolvegame import Solver | |
my_species = [ | |
Species(name="Widgeon Grass", | |
calories_provided=4950, | |
calories_needed=0, | |
depth_range="0-30m", | |
temperature_range="28.3-30", | |
food_sources=[]), |
import json | |
file_name = "a.json" | |
with open(file_name) as f1: | |
lines = f1.readlines() | |
# Removing Event, Event Number and the Number at the end, then parsing line as a json | |
lines = [json.loads(" ".join(line.split(" ")[2:-1])) for line in lines] | |
print ([line["log"] for line in lines]) |
#!/bin/bash | |
# Rick Astley in your Terminal. | |
# By Serene Han and Justine Tunney <3 | |
version='1.1' | |
rick='http://keroserene.net/lol' | |
video="$rick/astley80.full.bz2" | |
# TODO: I'll let someone with mac or windows machine send a pull request | |
# to get gsm going again :) | |
audio_gsm="$rick/roll.gsm" | |
audio_raw="$rick/roll.s16" |
code --install-extension aaron-bond.better-comments | |
code --install-extension abusaidm.html-snippets | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension dsznajder.es7-react-js-snippets | |
code --install-extension ecmel.vscode-html-css | |
code --install-extension enkia.tokyo-night | |
code --install-extension formulahendry.auto-rename-tag | |
code --install-extension hollowtree.vue-snippets | |
code --install-extension KnisterPeter.vscode-github | |
code --install-extension ms-vscode.cpptools |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.5.0</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
# gets all developer tools | |
xcode-select --install | |
# homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Download font - Cascadia Code | |
# Casks |
clc; | |
msg = [];stuff = []; | |
n = input("Enter length of message "); | |
disp("Enter the message bits: "); | |
i = 1;j=1;count = 0; | |
while i<= n | |
msg(i)=input(''); |
def xor(a, b): | |
result = [] | |
for i in range(1, len(b)): | |
if a[i] == b[i]: result.append('0') | |
else: result.append('1') | |
return ''.join(result) | |
def mod2div(divident, divisor): |