Skip to content

Instantly share code, notes, and snippets.

View kevinmcampos's full-sized avatar
🚀

Kevin Campos kevinmcampos

🚀
View GitHub Profile
@kevinmcampos
kevinmcampos / .gitignore
Created April 15, 2015 19:39
.gitignore for Android Studio projects
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
exori gran ico
exori min flam
exevo infir con
exori
utito tempo
exura infir ico
exori ico
exori infir vis
exana ina
exeta res
+ (void)installAuthServerCredentials {
if (![[NSUserDefaults standardUserDefaults] boolForKey:kCertificatesInstalled] || [self certificateIsOutadated]) {
[NKKeyChain clearCertificates];
[NKKeyChain clearIdentities];
NSString *certificatePath = [[NSBundle mainBundle] pathForResource:AUTH_SERVER_CERTIFICATE ofType:@"der"];
NSData *certificateData = [[NSFileManager defaultManager] contentsAtPath:certificatePath];
BOOL isServerCertificateImported = [NKKeyChain importCertificateWithData:certificateData];
if (isServerCertificateImported) {
@kevinmcampos
kevinmcampos / CustomModulesPackage.java
Last active March 22, 2017 12:01
New websocket module for React Native using OkHttpClientProvider
package com.una;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.modules.websocket.WebSocketModule;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
@kevinmcampos
kevinmcampos / .eslintrc.json
Created June 25, 2018 23:37
ESLint React-Native
{
"env": {
"node": true,
"es6": true,
"commonjs": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
{
"results": [
{
"00010-500001146039-001": {
"input": {
"order_type": "INSTALATION",
"order_subtype": "SUSTITUCION MASIVA",
"creator": "ENDESA DISTRIBUCION ELECTRICA",
"assignee": "30716 AMETEL CADIZ 17",
[
{
"code":"AED",
"name":"Emirati Dirham",
"symbol":"\u062f.\u0625",
"html_entity":"\u062f.\u0625",
"code_decimal":"AED",
"prefix":"AED ",
"suffix":"",
[
{
"title": "Clean Code",
"author": "Uncle Bob"
},
{
"title": "Refactor Patterns",
"author": "Kent Beck"
}
]
@kevinmcampos
kevinmcampos / items
Last active November 9, 2019 10:00
GET /inventories
{
"filtered":6,
"total":6,
"results":[
{
"code":"AAA10305",
"status":"AVAILABLE",
"image_url":"https://www.hurusystems.com/wp-content/themes/huru/static/images/carousel_11.png",
"date_created":"2019-11-20T08:09:16.799680"
},