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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Basic Auth Log Out</title> | |
</head> | |
<script type="text/javascript"> | |
if(~document.URL.split('/')[2].search('@')) | |
// clean url from bad credentials (log:out@) | |
document.location = document.location.origin | |
+ document.location.pathname; |
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
queryIds(searchIds){ | |
let ids = [...searchIds]; | |
return this.lanes.reduce((result, lane, laneIdx) => { | |
// no more ids | |
if(!ids.length) return result; | |
const notes = lane.notes; | |
const idsIndexOfLane = ids.indexOf(lane.id); |
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
move({sourceId, targetId}){ | |
const lanes = []; | |
let sourceCheck, targetCheck; | |
for(let lane of this.lanes){ | |
if (sourceCheck && targetCheck) { | |
lanes.push(lane); | |
continue; | |
} |
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
1. Download ova from https://www.turnkeylinux.org/laravel | |
2. Import ova to VirtualBox. | |
3. Add an empty optical drive to machine | |
4. Run the machine and login as root | |
5. Exec ```apt-get install linux-headers-$(uname -r) build-essential dkms sudo``` | |
6. Insert Guest Additions CD image. | |
7. Exec ```mkdir /media/cdrom``` | |
8. Exec ```mount /dev/cdrom /media/cdrom/``` | |
9. Exec ```sh /media/cdrom/VBoxLinuxAdditions.run``` | |
10. Create the vagrant user ```adduser vagrant``` |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
import 'package:flutter/material.dart'; | |
const int flagOffset = 0x1F1E6; | |
const int asciiOffset = 0x41; | |
String codeToCountryEmoji(code) { | |
final char1 = code.codeUnitAt(0) - asciiOffset + flagOffset; | |
final char2 = code.codeUnitAt(1) - asciiOffset + flagOffset; | |
return String.fromCharCode(char1) + String.fromCharCode(char2); | |
} |
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
import 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Catalog', | |
home: MyHomePage(title: 'Flutter Catalog'), |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
OlderNewer