Skip to content

Instantly share code, notes, and snippets.

View mezcel's full-sized avatar
🏴
status

Mezcel mezcel

🏴
status
View GitHub Profile
@mezcel
mezcel / celestial-navigation-calculate-and-determine-zn-azimuth.markdown
Created April 30, 2017 15:24
Celestial Navigation: Calculate and Determine Zn (azimuth)

Celestial Navigation: Calculate and Determine Zn (azimuth)

Celestial Navigation: Calculate and Determine Zn (azimuth)

Determine Zn (azimuth)

Zn = Computed azimuth,The simplest definition of azimuth is the bearing of a heavenly body from a fixed point on land or at sea. To be more precise, we might say azimuth is the bearing to the body's geographical position (the celestial coordinates of declination and hour angle reformulated as latitude and longitude).

Mathematically, the bearing is measured the shortest way from the poles, east or west of an observer's meridian to a maximum of l80°. Hc = Computed altitude

Handling Scrapy Clones Virtual Environments

For systems without Python, PIP, Virtualenv, or Scrapy

# PIP Prerequisets
sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev
sudo apt-get install zlib1g-dev libffi-dev libssl-dev

# Virtualenv Prerequisets
@mezcel
mezcel / README.md
Last active November 5, 2017 09:57
mod multimedia to be read by from Win to iPad via Camera Connection

photo-bat

A personal multimedia transfer hack for Win to iOS

This formats multimedia files to be read by the iPad via Apple iPad Camera Connection Kit

Working WIP

This is just a quick and dirty script. I was playing with BATCH and learning "ancient" DOS scripting. WARNING! I dont have any error traps. So read the prompts and dont commit the final step untill you agree with the confirmation screen.

Dependancies:
Using Command Line to call Device Manager
mmc devmgmt.msc
Using Command Line To Turn off Dev PC Touch Screen
Batch
https://superuser.com/a/1041779
sc.exe
sc query type= driver | findstr WHAT_IM_LOOKING_FOR
sc stop EXACT_DRIVER_NAME_AS_LISTED_BY_QUERY
java -jar myjarfile.jar
@mezcel
mezcel / ImageGrabber.java
Last active December 22, 2017 10:56
Example Java webscrape using Jsoup and Eclipse
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class ImageGrabber {
public static void main(String args[]) throws IOException {
@mezcel
mezcel / wallpaper.txt
Created February 13, 2018 06:09
FL Studio Mods
' background gradient colors
' The code of the left is the color at the center of the background, and the right one is the color at the corners.
Background=$FF3B747C,$FF775C64
' logo, size, colors
' logo O = fruit
Caption=O,150, $FF6B474C
' grid holes from the left to the right :
'1. grid's size
@mezcel
mezcel / ExportAllToCsv.vb
Last active August 20, 2021 10:42
LibreOffice Calc Macros
Sub ExportAllToCsv
document = ThisComponent
' Use the global string tools library to generate a base filename for each CSV
' based on the current prefixless filename
GlobalScope.BasicLibraries.loadLibrary("Tools")
BaseFilename = Tools.Strings.GetFileNameWithoutExtension(document.getURL(), "/")
' Work out number of sheets for looping over them later.
Sheets = document.Sheets
@mezcel
mezcel / auto-setup-my-git-repos.sh
Last active April 19, 2018 21:19
A Gist version of the readme/info from my repo-pocket repository
#!/bin/bash
# set -e
###############################################################################
# Written for Linux Mint 18+ on x64
# Author : Mezcel
# Website : www.github.com/mezcel/repo-pocket/shell/linuxsetupShell.sh
# Compatable with: Git and Gitbash
###############################################################################
#