Skip to content

Instantly share code, notes, and snippets.

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

Ismael Correa Castro iarfen

🏠
Working from home
View GitHub Profile
import React from "react";
import Routes from "../routes/Index";
export default props => <>{Routes}</>;
const Dashboard = () => {
return (
<div className="formulario">
<div className="head-form">
<h1>Bienvenido</h1>
</div>
<div className="jumbotron" style={{height: '100px',padding: '10px'}}>
<div className="center">
<p>Tu saldo actual es:</p>
<h3><strong id="balance">$5.000</strong></h3>
if (newUserScore.transform.Find("Ranking").Find("Ranking").GetComponent<Text>())
{
newUserScore.transform.Find("Ranking").Find("Ranking").GetComponent<Text>().text = ranking.ToString();
}
@iarfen
iarfen / CoolFirebase.cs
Created July 24, 2018 15:20
Threading is not working, it gets paused eternally
public string read_string_value(string node, string value)
{
string read_result = "";
var t = Firebase.Database.FirebaseDatabase.DefaultInstance.GetReference(node).GetValueAsync();
var t2 = t.ContinueWith((task) => {
if (task.IsFaulted)
{
Debug.LogError("Task of reading value '" + value + "' of node '" + node + "'has failed");
return "other value 3";
}
In file included from C:/Programas/MSYS2/mingw64/include/c++/7.1.0/bits/stl_algobase.h:71:0,
from C:/Programas/MSYS2/mingw64/include/c++/7.1.0/bits/char_traits.h:39,
from C:/Programas/MSYS2/mingw64/include/c++/7.1.0/string:40,
from C:/Users/Iarfen/Desktop/Iarfen/Proyectos/Cientificos/Laboratorio/scilog/core/entry.hpp:4,
from C:/Users/Iarfen/Desktop/Iarfen/Proyectos/Cientificos/Laboratorio/scilog/core/learn_entry.hpp:4,
from C:/Users/Iarfen/Desktop/Iarfen/Proyectos/Cientificos/Laboratorio/scilog/core/learn_entry.cpp:1:
C:/Programas/MSYS2/mingw64/include/c++/7.1.0/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<const std::shared_ptr<scilog_cli::entry>*, std::vector<std::shared_ptr<scilog_cli::entry> > >; _Predicate = scilog_cli::previous_pages(const string&, const string&)::<lambda(std::shared_ptr<scilog_cli::entry>&)
C:/Users/Iarfen/Desktop/Iarfen/Proyectos/Cientificos/Laboratorio/scilog/core/learn_entry.cpp: In function 'int scilog_cli::previous_pages(const string&, const string&)':
C:/Users/Iarfen/Desktop/Iarfen/Proyectos/Cientificos/Laboratorio/scilog/core/learn_entry.cpp:41:51: error: binding reference of type 'std::vector<std::shared_ptr<scilog_cli::entry> >&' to 'const std::vector<std::shared_ptr<scilog_cli::entry> >' discards qualifiers
vector<shared_ptr<entry>>& entries = get_entries(month,year);
<VirtualHost *:80>
DocumentRoot "C:/Web/hinchas-chile"
ServerName hinchaschile.local
FallbackResource /index.php
AddDefaultCharset UTF-8
</VirtualHost>
VirtualHost configuration:
*:443 www.example.com (C:/xampp/apache/conf/extra/httpd-ssl.conf:121)
*:80 localhost (C:/xampp/apache/conf/httpd.conf:565)
ServerRoot: "C:/xampp/apache"
Main DocumentRoot: "C:/Web"
Main ErrorLog: "C:/xampp/apache/logs/error.log"
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
[Tue Jun 05 18:58:25.058264 2018] [core:trace3] [pid 12832:tid 2008] request.c(291): [client ::1:55172] request authorized without authentication by access_checker_ex hook: /module/validate/validate.js, referer: http://localhost/hinchas-chile/
[Tue Jun 05 18:58:25.058264 2018] [rewrite:trace1] [pid 12832:tid 2008] mod_rewrite.c(476): [client ::1:55172] ::1 - - [localhost/sid#a622c8][rid#722a120/initial] [perdir C:/Web/] pass through C:/Web/module, referer: http://localhost/hinchas-chile/
[Tue Jun 05 18:58:25.058264 2018] [core:info] [pid 12832:tid 2008] [client ::1:55172] AH00128: File does not exist: C:/Web/module/validate/validate.js, referer: http://localhost/hinchas-chile/
// htaccess root:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^matching [NC]
RewriteRule ^(.*) matching/$1
RewriteCond %{HTTP_REFERER} /matching [NC]
RewriteRule ^(.*) matching/$1
RewriteCond %{HTTP_REFERER} ^batalladekerk [NC]
RewriteRule ^(.*) batalladekerk/$1
RewriteCond %{HTTP_REFERER} /batalladekerk [NC]
RewriteRule ^(.*) batalladekerk/$1