Skip to content

Instantly share code, notes, and snippets.

View codesue's full-sized avatar
🦥
Slow to respond

Suzen Fylke codesue

🦥
Slow to respond
View GitHub Profile
@codesue
codesue / main_1_ResidenceNonabstract.cpp
Last active October 2, 2017 02:34 — forked from simonayzman/main_1_ResidenceNonabstract.cpp
Applying Polymorphism to Data in Data Structures
#include <iostream>
#include <vector>
using namespace std;
class Residence {
public:
Residence(double newPrice = 1.0) : price(newPrice) {}
virtual ~Residence() {}
double getPrice() { return price; }
@codesue
codesue / dll.cpp
Created October 4, 2017 21:06
Doubly Linked List
//An example of a simple double linked list using OOP techniques
#include <iostream>
using namespace std;
struct Node
{
double value;
Node *N,*P;
Node(double y)
{
@codesue
codesue / suzenfylke_com.htaccess
Created December 5, 2017 13:50
Browser Caching for suzenfylke_com
ErrorDocument 404 /404.html
# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
@codesue
codesue / voice-web-localize-og-desc-tag.md
Last active April 6, 2019 16:22
Localizing the open graph description tag in voice-web (Common Voice)

voice-web/web/index_template.html

<meta property="og:locale" content="en" />
<meta property="og:locale:alternate" content="sv-SE" />

voice-web/web/src/components/app.tsx

document.querySelector('meta[property="og:locale"]').setAttribute('content', mainLocale);
@codesue
codesue / playlist-maker-theshins.gif
Last active June 8, 2019 21:37
Playlist Maker 🎶
playlist-maker-theshins.gif
@codesue
codesue / mct_214_pip_freeze_output.txt
Last active July 11, 2022 18:40
Test output and dependencies for model-card-toolkit branch codesue/214-bump-tfx-and-friends
absl-py==1.1.0
apache-beam==2.39.0
appnope==0.1.3
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
astunparse==1.6.3
attrs==20.3.0
backcall==0.2.0
beautifulsoup4==4.11.1
bleach==5.0.1
@codesue
codesue / a.py
Created August 14, 2022 15:52
test gist embeds
print('this is a.py')
@codesue
codesue / standalone-model-card-toolkit-demo.ipynb
Last active November 12, 2022 00:41
[model-card-toolkit] PR#238 Test wheel produced from wheel release workflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codesue
codesue / mct_247_pip_freeze_output.txt
Created November 17, 2022 02:54
model-card-toolkit #247 Deprecate ModelCardGenerator component
absl-py==1.0.0
anyio==3.6.2
apache-beam==2.42.0
appnope==0.1.3
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
astunparse==1.6.3
attrs==21.4.0
backcall==0.2.0
beautifulsoup4==4.11.1
@codesue
codesue / components_keras.ipynb
Last active November 19, 2022 19:59
Playing with model-card-toolkit & metrics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.