Skip to content

Instantly share code, notes, and snippets.

View str's full-sized avatar
🎯
Focusing

Stuardo -StR- Rodríguez str

🎯
Focusing
View GitHub Profile
@str
str / ScriptFirst.vue
Created April 5, 2020 23:03
Vue ScriptFirst RFC
<script>
/**
* ScriptFirst is a demo to see if we can set the script tag first.
*
* The idea of adding the script tag before the template tag, is to be able to
* add documentation first, making it easier to understand what the custom Vue
* component is for.
*
* @author Stuardo Rodríguez <str@maphpia.com>
* @version 0.1
@str
str / demo.php
Created July 9, 2019 12:25
demo
<?php
abstract class SomeAbstractClass
{
protected $name;
public function getName()
{
return $this->name;
@str
str / keybase.md
Created June 21, 2018 13:20
keybase.md

Keybase proof

I hereby claim:

  • I am str on github.
  • I am stuardo (https://keybase.io/stuardo) on keybase.
  • I have a public key ASAfxKCMgGfB-f5lN0hqAUiz0Vf0XCzXcpwgg6-2RxVylAo

To claim this, I am signing this object:

@str
str / AbstractRestController.php
Created March 17, 2017 20:03
Just extend the class and define $this->modelClass = YourSpecificModel::class;
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
abstract class AbstractRestController extends Controller
{
protected $modelClass;
@str
str / functions.php
Last active September 22, 2015 14:57
WP requeue JS and CSS to the bottom
<?php
/**
* The plugins load their JS in the header, which should not.
*/
function reQueuePlugins() {
if (!is_admin()) {
$jsLibs = [
'anything-popup-js' => get_option('siteurl').'/wp-content/plugins/anything-popup/anything-popup.js',
'jquery.scrollTo' => get_option('siteurl').'/wp-content/plugins/spider-faq/elements/jquery.scrollTo.js',
'loewy_blog' => get_option('siteurl').'/wp-content/plugins/spider-faq/elements/loewy_blog.js',
@str
str / SpotDetector
Last active August 29, 2015 14:07
Plan de acción para el desarrollo de la aplicación
SpotDetector (detector de manchas :P)
metas a corto plazo
--------------------
- conseguir URLs de descarga de radios online para volcar steam a archivo
- definir herramienta para volcar steam a archivos
- asignar quién descargará que emisora (actualizar gist)
- descargar audio de 24 horas
metas a mediano plazo