Skip to content

Instantly share code, notes, and snippets.

View lennonjesus's full-sized avatar
🎯
Focusing

Lennon Jesus lennonjesus

🎯
Focusing
View GitHub Profile
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:md_maid_app/model/opportunity.dart';
import 'package:md_maid_app/utils/application-constants.dart';
import 'package:shared_preferences/shared_preferences.dart';
class OpportunityApiProvider {
@lennonjesus
lennonjesus / .gitlab-ci.yml
Created December 7, 2017 16:06
Gitlab CI - Build Ionic 3 Project and generates apk files
# Gitlab CI - Build Ionic 3 Project and generates apk files
image: beevelop/ionic:latest
stages:
- deploy
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
@lennonjesus
lennonjesus / gradle.properties
Created August 31, 2017 13:19
Ionic 2 Gradle Proxy Config
#platforms/android/gradle.properties
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
@lennonjesus
lennonjesus / atom-linux-keymap.cson
Created March 20, 2017 17:33
My Atom keymap.cson for Linux
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
@lennonjesus
lennonjesus / travis.yml
Last active November 22, 2016 00:28
Sample travis-ci yml configuration file to build repo with two projects (Java and Javascript) in two subfolders
language: java
script:
- cd api && mvn test
- npm i -g bower
- npm i -g gulp
- cd ../frontend && npm i && bower i && npm test
cache:
directories:
@lennonjesus
lennonjesus / instructions.md
Last active December 1, 2021 08:22
CloudReady ChromeOS Manual Installation Via the Cmd Line

CloudReady ChromeOS Manual Installation Via the Cmd Line

The following walkthrough for a cmd line installation may be useful to you if you are having issues with the UI button "Install CloudReady".

The instructions were (mostly) written up by Jaymes Driver. Thanks Jaymes!

  • After creating your Installer stick, boot from USB
  • When the first screen comes up and asks you to select your network, press Ctrl + Alt + F2.
  • You will find yourself at a command line.
  • the username is: chronos
@lennonjesus
lennonjesus / .bowerrc
Created September 20, 2016 13:13
Bower Proxy Config by Project
{
"directory": "bower_components",
"registry": "http://bower.herokuapp.com",
"proxy":"http://localhost:3128/",
"https-proxy":"http://localhost:3128/",
"strict-ssl": false
}
var express = require('express');
var router = express.Router();
var multer = require('multer');
var upload = multer( { dest: '/tmp/' } );
router.post( '/', upload.single('uploadfile'), function(req, res, next) {
// Metadata about the uploaded file can now be found in req.file
console.log(req.file);
@lennonjesus
lennonjesus / myprotocol.reg
Created June 27, 2016 18:14
Google Chrome Windows Protocol Handler - Register a handler to open Google Chrome from another browser
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\myprotocol]
@="URL:myprotocol Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\myprotocol\shell]
[HKEY_CLASSES_ROOT\myprotocol\shell\open]
[HKEY_CLASSES_ROOT\myprotocol\shell\open\command]
@="\"chrome.exe\" --url myappopenedonchrome.com"