npx react-native init AwesomeTSProject --template react-native-template-typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T git@github.com | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app" v-cloak> | |
<div class="row"> | |
<div class="large-12 columns"> | |
<h1>{{ quiz.title }}</h1> | |
<div class="callout"> | |
<div v-for="(question, index) in quiz.questions"> | |
<!-- Hide all questions, show only the one with index === to current question index --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file('test.xml'); | |
$ns = $xml->getNamespaces(true); | |
$xml->registerXPathNamespace('c', $ns['cfdi']); | |
$xml->registerXPathNamespace('t', $ns['tfd']); | |
//EMPIEZO A LEER LA INFORMACION DEL CFDI E IMPRIMIRLA | |
foreach ($xml->xpath('//cfdi:Comprobante') as $cfdiComprobante){ | |
echo $cfdiComprobante['version']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$certificateCAcer = '/certificate.cer'; | |
$certificateCAcerContent = file_get_contents($certificateCAcer); | |
/* Convert .cer to .pem, cURL uses .pem */ | |
$certificateCApemContent = '-----BEGIN CERTIFICATE-----'.PHP_EOL | |
.chunk_split(base64_encode($certificateCAcerContent), 64, PHP_EOL) | |
.'-----END CERTIFICATE-----'.PHP_EOL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
En el Servidor se busca montar un cronjob para que ejecute la proxima linea de comando | |
ln -s /path/to/laravel/storage/app/public /path/to/public/storage | |
Esto sirve para trabajar los registros en la carpeta storage de laravel cargando los archivos y evitar el acceso indebido, | |
asi en la vista se pueda visualizar de esta forma: | |
` <img class="thumbnail" src="{{ asset('storage/vereda/fotos/'.$w->filename) }}" alt="">` | |
De esta forma se puede visualizar los archivos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blade Template 38 mins ███████▌░░░░░░░░░░░░░ 35.8% | |
YAML 35 mins ██████▉░░░░░░░░░░░░░░ 32.9% | |
PHP 26 mins █████▏░░░░░░░░░░░░░░░ 24.6% | |
Other 7 mins █▍░░░░░░░░░░░░░░░░░░░ 6.8% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Git ¿Hiciste un commit en la rama incorrecta y no sabes cómo arreglarlo? Don't panic! 😱 | |
1️⃣ Ejecuta "git log" para ver tu historial de commits | |
2️⃣ Copia el hash del commit | |
3️⃣ Ve a la rama correcta y ejecuta "git cherry-pick" 🍒 | |
+ el hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<card> | |
<span slot="tools"> | |
<a href="#dlgNewNotice" class="btn btn-icon-toggle" data-toggle="modal"> | |
<i class="fa fa-plus-square"></i> | |
</a> | |
</span> | |
<span slot="title">Avisos</span> |
NewerOlder