Skip to content

Instantly share code, notes, and snippets.

@victorrattis
victorrattis / my_problem.kt
Created Jul 8, 2020
Using HILT to Inject the presenter
View my_problem.kt
@HiltAndroidApp
class MyApplication : Application()
interface MainContract {
interface View {
fun showHello()
}
interface Presenter {
fun onInit()
}
@hirauchg
hirauchg / Sample.kt
Created Jul 8, 2020
px dpの変換方法 - 1
View Sample.kt
fun dpTopx(dp: Int, context: Context): Float {
val metrics = context.getResources().getDisplayMetrics()
return dp * metrics.density
}
fun pxToDp(px: Int, context: Context): Float {
val metrics = context.getResources().getDisplayMetrics()
return px / metrics.density
}
View reference-and-dereference-on-perl.pl
#!/usr/bin/env perl
use strict;
use warnings;
my @array = qw/1 2 3 4 5/;
use Data::Dumper; warn Dumper @array;
# $VAR1 = '1';
View wpt.html
<!DOCTYPE html>
<html>
<head>
<title>WebPageTest - Test Log</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="Log,History,WebPageTest,Website Speed Test">
<meta name="description" content="History of website performance speed tests run on WebPageTest.">
<meta name="author" content="Patrick Meenan">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
@Picenipedro
Picenipedro / PY0101EN-1-2-Strings.ipynb
Created Jul 8, 2020
Created on Skills Network Labs
View PY0101EN-1-2-Strings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sophie2001
sophie2001 / PY0101EN-2-2-Lists.ipynb
Created Jul 8, 2020
Created on Skills Network Labs
View PY0101EN-2-2-Lists.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mahnoor0999
Mahnoor0999 / PY0101EN-4-2-WriteFile.ipynb
Created Jul 8, 2020
Created on Skills Network Labs
View PY0101EN-4-2-WriteFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Skoatpalace
Skoatpalace / material-ui-tab-links.jsx
Created Jul 8, 2020 — forked from MartinL83/material-ui-tab-links.jsx
Material-UI, changing URL when clicking on a Tab
View material-ui-tab-links.jsx
@Skoatpalace
Skoatpalace / material-ui-tab-links.jsx
Created Jul 8, 2020 — forked from MartinL83/material-ui-tab-links.jsx
Material-UI, changing URL when clicking on a Tab
View material-ui-tab-links.jsx
@Zyssetd
Zyssetd / [Diverse Grundlegende Scripts]
Created Jul 8, 2020
[Diverse Grundlegende Scripts]
View [Diverse Grundlegende Scripts]
#Scriptausführung in der Powershell aktivieren
set-executionpolicy RemoteSigned
#
#Verbindung mit Exchange aufbauen
$cred = Get-Credential
#
#Session eröffnen
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection
#
#Commandlets importieren
You can’t perform that action at this time.