Skip to content

Instantly share code, notes, and snippets.

View dict_to_list_ways.py
segments = [{'name': 'Wallstreet', 'average_spend': 82.01}, {'name': 'Gambler', 'average_spend': 107.00}, {'name': 'Parents', 'average_spend': 10.52}]
def list_from_loop(segments):
loop_list=[]
for s in segments:
loop_list.append(s['name'])
return loop_list
def get_name(segment):
return segment['name']
View Verify.html
@model WebApplication4.Newuser
@{
ViewBag.Title = "Index";
}
@Html.ActionLink("User Details ", "Index", "SetCreditLimit")
<h2>Customer Registration Page</h2>
<html>
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
@matenownow
matenownow / font-settings.md
Created Aug 10, 2020
Monospace font settings
View font-settings.md

External screen / Notebook (1366x768)

System font (KDE menu -> System Settings -> Fonts -> Fixed width):

Consolas 10pt

Konsole (Settings -> Edit Current Profile -> Appearance)

Consolas 10pt, line spacing: 4px

View AnimationName-1597087671024-626.css
.css-selector {
    background: linear-gradient(270deg, #2597fd, #68a1d9, #056df3);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 1s ease infinite;
    -moz-animation: AnimationName 1s ease infinite;
    -o-animation: AnimationName 1s ease infinite;
    animation: AnimationName 1s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:37% 0%}
View Potential Maintainers
Maintainers:
dasj19: gnome-subtitles, gnome-subtitles, gnome-subtitles, gnome-subtitles
View Changed Paths
x86_64-linux gnome-subtitles
aarch64-linux gnome-subtitles
i686-linux gnome-subtitles
x86_64-darwin gnome-subtitles
@Arfaouikhouloud
Arfaouikhouloud / hello.c
Last active Aug 10, 2020
mon hello world
View hello.c
int main()
{
printf("hello world");
return 0;
}
View gist:74738e95c51be70fc27007ae8d5e12e8
B2 Intermission Work
Answer these Check for Understanding questions as you work through the assignments.
HTML
What is HTML?
What is an HTML element?
What is an HTML attribute?
What is the difference between a class and an id? When would you use one vs. the other?
What HTML would you write to create a form for a new dog with a "name" and an "age"?
What are semantic tags? When would you use them over a div?
You can’t perform that action at this time.