Skip to content

Instantly share code, notes, and snippets.

View indentation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Diagonal2.py
np.diag(a)
Output: array([1, 2, 3, 4])
View 4.py
# Setting the text on the Y-axis
plt.ylabel("Crude Oil Prices: Brent - Europe")
# Setting the size of our graph
data.Value.plot(figsize=(10,5))
View easybuild_test_report_easyconfigs_pr9982_20203504-UTC-00-35-06.md
@lexming
lexming / STAR-Fusion-1.8.1-foss-2019b-Python-3.7.4_partial.log
Created Apr 4, 2020
(partial) EasyBuild log for failed build of /user/brussel/101/vsc10122/.local/easybuild/tmp/eb-6Vn6b6/files_pr9982/s/STAR-Fusion/STAR-Fusion-1.8.1-foss-2019b-Python-3.7.4.eb (PR #9982)
View STAR-Fusion-1.8.1-foss-2019b-Python-3.7.4_partial.log
== 2020-04-04 02:34:08,668 easyblock.py:280 INFO This is EasyBuild 4.2.0.dev0-r9064fbf53ae5473748485e499116457bec355e38 (framework: 4.2.0.dev0-r9064fbf53ae5473748485e499116457bec355e38, easyblocks: 4.1.2.dev0-r3ade7ae1de67d0d41de41467407dbf7b903855c5) on host node375.hydra.os.
== 2020-04-04 02:34:08,669 easyblock.py:286 INFO This is easyblock Tarball from module easybuild.easyblocks.generic.tarball (/user/brussel/101/vsc10122/src/easybuild-easyblocks/easybuild/easyblocks/generic/tarball.pyo)
== 2020-04-04 02:34:08,669 easyblock.py:843 INFO Build dir set to /user/brussel/101/vsc10122/.local/easybuild/build/STARFusion/1.8.1/foss-2019b-Python-3.7.4
== 2020-04-04 02:34:08,669 easyblock.py:903 INFO Software install dir set to /user/brussel/101/vsc10122/.local/easybuild/software/STAR-Fusion/1.8.1-foss-2019b-Python-3.7.4
== 2020-04-04 02:34:08,669 easyblock.py:908 INFO Module install dir set to /user/brussel/101/vsc10122/.local/easybuild/modules/all
== 2020-04-04 02:34:08,669 easyblock.py:265 INFO Init completed for
@setapolo
setapolo / index.html
Created Apr 4, 2020
Closure Cascading three.js BOX
View index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<script>
function init() {
[width,height]=[960,540];
//https://github.com/ics-creative/tutorial-three
const renderer = new THREE.WebGLRenderer({
canvas: document.querySelector('#myCanvas')
});
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Apr 4, 2020
Rimworld output log published using HugsLib
View output_log.txt
This file has been truncated, but you can view the full file.
Log uploaded on Saturday, April 4, 2020, 2:34:39 AM
Loaded mods:
Harmony(brrainz.harmony): 0Harmony(2.0.0.8), HarmonyMod(1.0.0.3)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:7.1.4]: 0Harmony(av:2.0.0.8,fv:1.2.0.1), HugsLib(av:1.0.0,fv:7.1.4)
Children, school and learning(Dylan.CSL): 0Harmony(2.0.0.8), Children(1.0.0), ChildrenHelperClasses(1.0.0)
Better ModMismatch Window(Madeline.ModMismatchFormatter): ModMisMatchWindowPatch(1.0.0)
JecsTools(jecrell.jecstools): 0Harmony(2.0.0.8), 0JecsTools(1.2.0.1), AbilityUser(1.18.0), AbilityUserAI(1.18.0), CompActivatableEffect(1.18.0), CompAnimated(1.18.0), CompBalloon(1.18.0), CompBigBox(1.18.0), CompDeflector(1.18.0), CompDelayedSpawner(1.18.0), CompExtraSounds(1.18.0), CompInstalledPart(1.18.0), CompLumbering(1.18.0), CompOverlays(1.18.0), CompOversizedWeapon(1.18.0), CompSlotLoadable(1.18.0), CompToggleDef(1.18.0), CompVehicle(1.17.0.1), PawnShields(1.0.0), ThinkNodes(1.0.0)
View script2.js
//...
const alertMessage = () => {
alert('Hello, im a message :)');
};
const foo = () => {
alert('Hello, im a foo :)');
};
//Esto es lo que agregamos
const btn = document.querySelector('#btnAlert');
View Diagonal.py
a = np.diag([1,2,3,4])
print(a)
Output:
[[1 0 0 0]
[0 2 0 0]
[0 0 3 0]
[0 0 0 4]]
You can’t perform that action at this time.