Skip to content

Instantly share code, notes, and snippets.

View denpalrius's full-sized avatar
🎯
Focusing

Dennis Riungu Muticia denpalrius

🎯
Focusing
View GitHub Profile
@denpalrius
denpalrius / config.yml
Created September 1, 2018 10:29
Cirlcle CI Angular config.yml
version: 2
jobs:
# The build job
build:
working_directory: ~/project
docker:
- image: circleci/node:8.11.1-browsers
steps:
# Checkout the code from the branch into the working_directory
@denpalrius
denpalrius / fading.dart
Created September 1, 2018 10:26
Fading out top (Flutter)
import 'package:flutter/material.dart';
class FadingPage extends StatefulWidget {
FadingPage({Key key, this.title}) : super(key: key);
final String title;
@override
_FadingPageState createState() => new _FadingPageState();
}
@denpalrius
denpalrius / .travis.yml
Created May 21, 2018 14:36 — forked from yjbanov/.travis.yml
Continuously build Flutter APKs and IPAs using Travis build matrix
matrix:
include:
- os: linux
language: android
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
android:
components:
@denpalrius
denpalrius / ds-algorithms.ts
Last active January 24, 2018 14:10
Sorting Algorithms in Typescript
module ThingSpeak.Directives {
"use strict";
interface sortTechnique {
name?: string;
code?: number;
}
interface IScope extends ng.IScope {
list?: string;
@denpalrius
denpalrius / C# Regx Email Validator
Last active August 25, 2016 13:36
C# Snippet to validate email addresses
public sealed class EmailValidator
{
public static bool Validate(string email)
{
try
{
return new Regex(@"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$").IsMatch(email);
}
catch (Exception ex)
{