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 | |
# source: https://www.linuxquestions.org/questions/debian-26/apt-get-update-gets-stuck-while-reading-package-list-on-my-slug-795324/ | |
mv /var/lib/dpkg/status /var/lib/dpkg/status.broken.bak | |
cp /var/lib/dpkg/status-old /var/lib/dpkg/status | |
rm -rf /var/lib/apt/lists/* | |
dpkg --configure -a | |
aptitude update | |
aptitude upgrade |
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
.challenge-grid { | |
margin: 30px 0; | |
overflow: hidden; | |
} | |
.suggested-challenges h2 { | |
margin-top: 60px; | |
border-bottom: 1px solid #d9d9d9; | |
padding-bottom: 7px; | |
} | |
.challenge-grid .idea-block { |
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
.grid-overlay:before { | |
content: ""; | |
position: fixed; | |
background-color: rgba(34,102,153,0.5); | |
background: -webkit-linear-gradient(skyblue 2px, transparent 2px), -webkit-linear-gradient(0, skyblue 2px, transparent 2px), -webkit-linear-gradient(skyblue 1px, transparent 1px), -webkit-linear-gradient(0, skyblue 1px, transparent 1px); | |
background: -moz-linear-gradient(skyblue 2px, transparent 2px), -moz-linear-gradient(0, skyblue 2px, transparent 2px), -moz-linear-gradient(skyblue 1px, transparent 1px), -moz-linear-gradient(0, skyblue 1px, transparent 1px); | |
background: -o-linear-gradient(skyblue 2px, transparent 2px), -o-linear-gradient(0, skyblue 2px, transparent 2px), -o-linear-gradient(skyblue 1px, transparent 1px), -o-linear-gradient(0, skyblue 1px, transparent 1px); | |
background: -ms-linear-gradient(skyblue 2px, transparent 2px), -ms-linear-gradient(0, skyblue 2px, transparent 2px), -ms-linear-gradient(skyblue 1px, transparent 1px), -ms-linear-gradient(0, skyblue 1px, transparent 1px); | |
background |
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
@staticmethod | |
def getJobStatChart(title, currentTime): | |
statistics =\ | |
DataPool( | |
series= | |
[{'options': { | |
'source': PBSServer.objects.order_by('-time')[:20] }, | |
'terms': [ | |
('time', lambda d: time.mktime(d.timetuple())), | |
'running_jobs', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# models.py | |
class User(AbstractBaseUser, PermissionsMixin): | |
username_validator = UnicodeUsernameValidator() | |
id = models.UUIDField(verbose_name=_('ID'), primary_key=True, default=uuid.uuid4, editable=False) | |
username = models.CharField( | |
_('Usuário'), | |
max_length=150, | |
unique=True, | |
help_text=_('Obrigatório. 150 caracteres ou menos. Letras, números e os símbolos @/./+/-/_ são permitidos.'), |
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 python3 | |
""" | |
This test will compare the output of ephem, skyfield and sgp4 | |
Reference information from cbassa/sattools skymap | |
Time: 2019-10-31T18:22:00 | |
Location: 52.8344N, 6.3785E, 10m | |
TLE: | |
USA 276 | |
1 42689U 17022A 19300.77210760 0.00002000 00000-0 26008-4 0 09 |
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
Traceback (most recent call last): | |
File "C:/Users/taiko/PycharmProjects/untitled/solar_system_toy.py", line 125, in <module> | |
orbit_list[idx] = orbit_list[idx].propagate(1*u.day,method=cowell,ad=ad) | |
File "C:\Users\taiko\AppData\Local\Programs\Python\Python37-32\lib\site-packages\poliastro\twobody\orbit.py", line 999, in propagate | |
cartesian = propagate(self, time_of_flight, method=method, rtol=rtol, **kwargs) | |
File "C:\Users\taiko\AppData\Local\Programs\Python\Python37-32\lib\site-packages\poliastro\twobody\propagation.py", line 468, in propagate | |
orbit.attractor.k, orbit.r, orbit.v, time_of_flight.to(u.s), rtol=rtol, **kwargs | |
File "C:\Users\taiko\AppData\Local\Programs\Python\Python37-32\lib\site-packages\poliastro\twobody\propagation.py", line 105, in cowell | |
dense_output=True, | |
File "C:\Users\taiko\AppData\Local\Programs\Python\Python37-32\lib\site-packages\scipy\integrate\_ivp\ivp.py", line 477, in solve_ivp |
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 python3.4 | |
""" | |
observe_skyfield.py | |
Observing exercise with Skyfield. | |
""" | |
import numpy as np |
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 python3 | |
import numpy as np | |
from skyfield.api import Topos, load | |
from skyfield.api import EarthSatellite | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Circle | |
import astropy.units as u | |
from astropy.wcs import wcs | |
if __name__ == "__main__": |