Skip to content

Instantly share code, notes, and snippets.

View ojgarciab's full-sized avatar
👨‍👩‍👧‍👦
Busy for family reasons

Óscar García ojgarciab

👨‍👩‍👧‍👦
Busy for family reasons
View GitHub Profile
@ojgarciab
ojgarciab / app.js
Last active August 29, 2015 14:23 — forked from ricardosiri68/app.js
/*jslint nomen: true, debug: true, evil: true, vars: true, browser: true,
devel: true */
/*global */
var CountDown = function(options){
this.button = document.getElementById(options.button);
this.counter = document.getElementById(options.counter);
this.button.addEventListener('click', this.count_down.bind(this), false);
@ojgarciab
ojgarciab / control.php
Last active October 16, 2015 06:29 — forked from ChrisGehm/control.php
<?php
require_once 'config.php';
$diferencia_mes = " ";
$estado = " ";
$mes_actual = " ";
$mes_actual = date("m");
$año_actual = date("Y");
//lista completa
@ojgarciab
ojgarciab / html5-bootstrap-jquery.html
Last active September 20, 2017 08:03
Plantilla HTML5, Bootstrap y jQuery
<!DOCTYPE html>
<html lang="es">
<head>
<title>Título de ejemplo</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous" />
</head>
@ojgarciab
ojgarciab / .gitignore
Last active October 18, 2017 12:22
Simple Java SE HTTP Server para archivos y APIs
*.class
@ojgarciab
ojgarciab / android-studio.desktop
Last active November 18, 2017 15:50
Youtube /usr/share/applications/android-studio.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Terminal=false
Type=Application
Name=Android Studio 3.0.0
GenericName=Android Studio
Icon=/opt/android-studio/bin/studio.png
Exec=/opt/android-studio/bin/studio.sh %f
Keywords=android;studio
cmake_minimum_required( VERSION 2.8 )
find_package( Boost COMPONENTS REQUIRED iostreams filesystem system )
include_directories( ${Boost_INCLUDE_DIRS} )
add_executable( ejemplo_cpp ejemplo.cpp )
target_link_libraries( ejemplo_cpp ${Boost_LIBRARIES} )
cmake_minimum_required( VERSION 2.8 )
add_executable( ejemplo ejemplo.c )
phpmyadmin/
#!/usr/bin/perl
use strict;
sub deswappify {
my $pid = shift;
my $fh = undef;
my $start_addr, $end_addr;
if(open F, "/proc/$pid/smaps") {