Skip to content

Instantly share code, notes, and snippets.

@clubeagn
clubeagn / example_ajax.html
Created June 13, 2018 13:57 — forked from jhowbhz/example_ajax.html
example_ajax
<!DOCTYPE html>
<html>
<title> TESTE AJAX </title>
<body>
<button>CLIQUE AQUI</button>
<div id="teste"> </div>
</body>
</html>
[
[
{
"id": 1,
"slug": "acrelandia",
"city": "Acrelândia",
"state": "Acre",
"uf": "AC"
},
{
@clubeagn
clubeagn / file.html
Created August 17, 2018 13:01
schema.org
<script type='application/ld+json'>
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://airat.biz/",
"sameAs": [
"https://www.facebook.com/AiratBiz",
"https://plus.google.com/100793200182246131281",
"https://vk.com/AiratBiz",
"https://www.youtube.com/user/AiratHalitov",
@clubeagn
clubeagn / react-error1.txt
Last active December 28, 2018 14:43
Unable to load scripts from assets 'index.android.bundle' on real device
change index.js to index.android.js
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
react-native run-android
@clubeagn
clubeagn / react-erro2.txt
Last active December 28, 2018 14:43
react erros
Erro: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Solução:
Vá até a pasta Android do seu projeto.
- Crie um arquivo chamado: local.properties
-Abra o arquivo e coloque o caminho de sua SDK
Exemplo: C:\\Users\\Jonathan\\AppData\\Local\\Android\\sdk
@clubeagn
clubeagn / ajax.js
Created October 18, 2018 17:24
example_ajax
app.request.get('http://www.whileushop.com/lama/json.php',function (data) {
console.log(data);
});
@clubeagn
clubeagn / Typeahead.html
Last active September 26, 2018 14:48
Typeahead JS
<div class="form-group col-md-6">
{{ Form::label('XXXXXXX','XXXXXXX')}}
{{ Form::input('text','XXXXXXX', null, array('class' => 'form-control', 'autocomplete' => 'off')) }}
</div>
<script>
$(function () {
$("#XXXXXXX").typeahead({
@clubeagn
clubeagn / method_laravel.php
Last active September 26, 2018 14:47
Typeahead JSON_Result
public function AutocompleteJson(Request $request) {
$data = XXXXX::select("xxxx as xxxx")
->where("xxx","LIKE","%{$request->input('query')}%")
->get();
return response()->json($data);
}
@clubeagn
clubeagn / typeahead.css
Created September 26, 2018 14:44
it.toLowerCase is not a function
ul.typeahead.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
@clubeagn
clubeagn / .htaccess
Created September 25, 2018 18:38
MAUTIC
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
#DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On