Skip to content

Instantly share code, notes, and snippets.

View dart-dynamic-variable.dart
void main() {
dynamic myDynamicVar;
myDynamicVar = 10;
print(myDynamicVar);
myDynamicVar = 3.14;
print(myDynamicVar);
View Datafin.tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 64 columns, instead of 4. in line 2.
scalerank featurecla labelrank sovereignt sov_a3 adm0_dif level type admin Entity Code Year Annual CO2 emissions (per capita) Renewables (% electricity) Level subunit su_a3 brk_diff name name_long brk_a3 brk_name brk_group abbrev postal formal_en formal_fr note_adm0 note_brk name_sort name_alt mapcolor7 mapcolor8 mapcolor9 mapcolor13 pop_est gdp_md_est pop_year lastcensus gdp_year economy income_grp wikipedia fips_10 iso_a2 iso_a3 iso_n3 un_a3 wb_a2 wb_a3 woe_id adm0_a3_is adm0_a3_us adm0_a3_un adm0_a3_wb continent region_un subregion region_wb name_len long_len abbrev_len tiny homepart
1 Admin-0 country 3 Afghanistan AFG 0 2 Sovereign country Afghanistan Afghanistan AFG 2019 0.2818 85.27131783 VERY HIGH Afghanistan AFG 0 Afghanistan Afghanistan AFG Afghanistan Afg. AF Islamic State of Afghanistan Afghanistan 5 6 8 7 28400000 22270 -99 1979 -99 7. Least developed region 5. Low income -99 AF AFG 004 004 AF AFG -99 AFG AFG -99 -99 Asia Asia Southern Asia South Asia 11 11 4 -99 1
1 Admin-0 country 6 Albani
@alesandroortiz
alesandroortiz / bookmarklet.js
Created Sep 27, 2021
Run bookmarklet when on bugs.chromium.org
View bookmarklet.js
javascript:(() => { var crbugId = new URLSearchParams(window.location.search).get('id'); window.open('https://chromium-review.googlesource.com/q/bug:'+crbugId); })();
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Sep 27, 2021
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Monday, September 27, 2021, 7:36:48 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.1.1.0]: 0Harmony(2.1.1), HarmonyMod(1.1.1)
RuntimeGC [1.3](trinity.RuntimeGCupdated)[mv:0.1.0.0]: RuntimeGC(20.0.15.1)
Mood Bar Color(GoudronChambre5.MoodBarColor): 0Harmony(av:2.1.1,fv:2.1.0), MoodBarColor(1.0.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.1.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:9.0.1)
RimHUD(Jaxe.RimHUD): RimHUD(1.8.0)
@Kaeydo
Kaeydo / xenophage.py
Created Sep 27, 2021 — forked from ganius/xenophage.py
Simple Python script I wrote for the Destiny 2 Shadowkeep Xenophage exotic weapon quest
View xenophage.py
"""
A brute force solution to Xenophage quest
"""
import random
# Symbols are coded as the most similar letters, namely X, E, V, A
# Shooting a symbol converts it from one shape (letter) to another
trans_dict = {
'X': 'E',
'E': 'V',
View index.html
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
<div class="container">
<div class="header">
<div class="full-name">
<span class="first-name">Juan</span>
<span class="last-name">Duarte</span>
</div>
<div class="contact-info">
<span class="email">E-<ail: </span>
@hassaku63
hassaku63 / serverless.yml
Last active Sep 27, 2021
serverless.yml example
View serverless.yml
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# docs.serverless.com
View gist:cb12aaf573845978027a2a20e02bd97a
<!-- Mailing address -->
<service verb="create" noun="MailingAddress">
<description>
Wrapper service for mantle.party.ContactServices.create#MailingAddress.
</description>
<in-parameters>
<auto-parameters entity-name="moqui.basic.GeoPoint" include="nonpk"/>
<auto-parameters entity-name="mantle.party.contact.PartyContactMech" include="nonpk"/>
<parameter name="partyId"/>
View function.py
# printing can print any number of parameters
def just_print():
print("Hello")
print("Hello", "World")
print("Hey", "there", "hello", "World")
print("Hey there hello World")
# -------------------------------------------------------------------
View ps-enlarge-battle.user.js
// ==UserScript==
// @name Enlarge Pokemon Showdown Battle
// @match https://play.pokemonshowdown.com/*
// ==/UserScript==
(function() {
'use strict';
const style = document.createElement('style');
const scale = 1.5;