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
diff --git a/prot/rnaTranslation.c b/prot/rnaTranslation.c | |
index cb89e33..4eb6dbc 100644 | |
--- a/prot/rnaTranslation.c | |
+++ b/prot/rnaTranslation.c | |
@@ -13,10 +13,10 @@ struct dict{ | |
char lookup_codon(struct dict dictionary[CODON_DICT_SIZE], char * search_term) | |
{ | |
int i; | |
- char result; | |
+ char result = 'X'; |
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
gear_ratio(N, T) :- | |
GEARS = [11, 12, 13, 14, 15, 16, 18, 20, 21, 22, 24, 30, 32, 36, 40, 42, 48, 54, 60, 64, 72, 84, 96, 108, 112, 120, 144, 168], | |
member(G1, GEARS), member(G2, GEARS), member(G3, GEARS), member(G4, GEARS), | |
G1 >= G2, G3 >= G4, | |
N < (G1 * G2)/(G3 * G4) * (1 + T), | |
N > (G1 * G2)/(G3 * G4) * (1 - T), | |
R is (G1 * G2)/(G3 * G4), | |
write('('), | |
write(G1), write('*'), | |
write(G2), write(')/('), |
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
list_of_lists = [[1,2,3], [4,5,6]] | |
flattened_list = [element | |
for lst in list_of_lists | |
for element in lst] | |
print flattened_list |
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
#!/usr/bin/env python3 | |
""" | |
Turns out they have a desktop app. Use it instead of this. | |
https://www.rememberthemilk.com/services/mac/ | |
License: | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled |
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
; Taken from http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows | |
; CC-BY-SA | |
SetCapsLockState Off | |
state:=false | |
Esc:: | |
state:= not state | |
if (state) { | |
SetCapsLockState On | |
} else { | |
SetCapsLockState Off |
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
#$global:last_time = 0 | |
$restart = { | |
#$i = $Args.NewEvent.Properties['TIME_CREATED'] | |
Stop-Process -processname notepad | |
notepad | |
$s = Out-String -InputObject $Args.NewEvent.Properties | |
Write-Host $s | |
Remove-Event -SourceIdentifier asdf |
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
# this code didn't work but saving it in case I can reuse it | |
async def gen_item_groups(): | |
async with ESIClient(eve.MarketApi) as market_client: | |
item_group_ids = await market_client.get_markets_groups() | |
item_groups = await asyncio.gather(*[ | |
market_client.get_markets_groups_market_group_id(365900) | |
for group_id in item_group_ids[:10] | |
]) | |
return item_groups |
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
# This file contains pin mappings for the stock 2021 Creality Ender 3 | |
# S1. To use this config, check the STM32 Chip on the V2.4S1 Board | |
# then during "make menuconfig" select either the STM32F103 with a | |
# "28KiB bootloader" or select the STM32F401 with a "64KiB bootloader" | |
# and serial (on USB PA10/PA9) communication for both depending on the | |
# STM32 Chip installed on your printers Motherboard. | |
# If you prefer a direct serial connection, in "make menuconfig" | |
# select "Enable extra low-level configuration options" and select | |
# serial (on USB PA10/PA9), which is broken out on the 10 pin IDC |
OlderNewer