This file contains hidden or 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
| #!/usr/bin/env bash | |
| # clone https://github.com/lohanidamodar/gitpod-dotfiles.git to ~/.dotfiles | |
| # then run the ~/.dotfiles/setup.sh script | |
| if [ -d "${HOME}/.dotfiles" ]; then | |
| echo "Dotfiles directory already exists at ${HOME}/.dotfiles" | |
| echo "Updating existing dotfiles..." | |
| cd "${HOME}/.dotfiles" || exit 1 | |
| git pull origin main |
This file contains hidden or 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
| name: Handle Issues | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| create-branch-and-pr: | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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 url("https://fonts.googleapis.com/css?family=Candal"); | |
| @import url("https://fonts.googleapis.com/css?family=Changa One"); | |
| @import url("https://fonts.googleapis.com/css?family=Imprima"); | |
| /* Background colors*/ | |
| body { | |
| overflow: hidden; | |
| background-color: rgba(0,0,0,0); | |
| } | |
| /* Transparent background. */ |
This file contains hidden or 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:cloud_firestore/cloud_firestore.dart'; | |
| class DatabaseService<T> { | |
| final String collection; | |
| final Firestore _db = Firestore.instance; | |
| final T Function(String, Map<String,dynamic>) fromDS; | |
| final Map<String,dynamic> Function(T) toMap; | |
| DatabaseService(this.collection, {this.fromDS,this.toMap}); | |
| Future<T> getSingle(String id) async { | |
| var snap = await _db.collection(collection).document(id).get(); | |
| if(!snap.exists) return null; |
This file contains hidden or 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 Device Calendar', | |
| theme: ThemeData( |
This file contains hidden or 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 Device Calendar', | |
| theme: ThemeData( |
This file contains hidden or 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
| docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
This file contains hidden or 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
| -- phpMyAdmin SQL Dump | |
| -- version 4.0.10deb1 | |
| -- http://www.phpmyadmin.net | |
| -- | |
| -- Host: localhost | |
| -- Generation Time: May 06, 2017 at 03:59 PM | |
| -- Server version: 5.5.54-0ubuntu0.14.04.1 | |
| -- PHP Version: 5.5.9-1ubuntu4.21 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains hidden or 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
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
This file contains hidden or 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
| DROP TABLE currency; | |
| -- Create table variable | |
| CREATE TABLE currency ( | |
| country VARCHAR(100), | |
| currency VARCHAR(100), | |
| code VARCHAR(100), | |
| symbol VARCHAR(100) | |
| ); |
NewerOlder