Skip to content

Instantly share code, notes, and snippets.

View axeldeveloper's full-sized avatar
🏠
Working from home

Axel Alexander axeldeveloper

🏠
Working from home
View GitHub Profile
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {
angular.module('appPortal.ApiServico' , [])
.factory('CrudFactory', function($http, UrlApi) {
var config = {
headers: {
'Access-Control-Allow-Origin' : '*',
'Access-Control-Allow-Methods' : 'POST, GET, OPTIONS, PUT',
'Content-Type': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;',
'Accept': 'application/json'
}
angular.module('appPortal.DataStore', [])
.factory('DataStore', function() {
var noticias = angular.fromJson(window.localStorage['noticias'] || '[]');
function persist() {
window.localStorage['noticias'] = angular.toJson(noticias);
}
return {
ANDROID_HOME=C:\Users\axel_\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_241
ANDROID_HOME
Deprecated (in Android Studio), use ANDROID_SDK_ROOT instead.
set ANDROID_HOME=C:\Users\axel_\AppData\Local\Android\sdk
ANDROID_SDK_ROOT
package service
import (
"fmt"
"html/template"
"log"
"net/http"
"github.com/axeldeveloper/go-echo-sqlite-whatsapp/ctl"
"github.com/gorilla/mux"

comandos git para resolver problemas

Juntos, esses comandos descartam as alterações locais (salvando-as para mais tarde) e as substituem pela confirmação mais recente da sua filial remota. Boa sorte!

git stash

git pull

@axeldeveloper
axeldeveloper / ruby-rbenv.md
Last active September 19, 2020 18:54
Instalação e configuração do ruby-rails

Command Reference

 $ rbenv local
 $ rbenv global
 $ rbenv shell
 $ rbenv versions
 $ rbenv version
 $ rbenv rehash
 $ rbenv which

$ rbenv whence

import 'package:flutter/material.dart';
class GoogleMapsClonePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
CustomGoogleMap(),
CustomHeader(),
@axeldeveloper
axeldeveloper / rspec_model_testing_template.rb
Created May 25, 2021 20:40 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems: