Skip to content

Instantly share code, notes, and snippets.

View pr00thmatic's full-sized avatar

pr00thmatic pr00thmatic

View GitHub Profile
using UnityEngine;
// use it like this:
// yield return new PauseFriendlyWaitForSeconds(1.3f);
public class PauseFriendlyWaitForSeconds : CustomYieldInstruction {
float elapsed = 0;
float waitingTime;
public override bool keepWaiting {

git es el motor de versionamiento.

github es una página que te deja subir carpetas de git (a esto se le llama "repositorio de git").

En github puedes tener muchos "remotes"... Un "remote" es un sitio en un servidor en donde se puede alojar un repositorio de git. Crear un remote es fácil xD solo es seguir las instrucciones en github.com (loguéate, haz clic en "+" en la parte superior derecha, y selecciona "new repository"

ya creamos un remote... el de la página web http://mpramos.github.io ... así que voy a escribir cómo continuar trabajando sobre ese repositorio:

continuar trabajando en http://mpramos.github.io (descargar el repositorio)

import java.util.*;
import java.Scanner;
public class Capicua {
public static void main(String[] args) {
Scanner in = new Scanner();
int n = in.nextInt();
String str = n + "";
String capi = str.substring(0, Math.floor(str.length/2));
module.exports = (() => {
// each word must be a string
function isClosedInSum (code, base = 2) {
var i, j;
var map = {};
var nonClosedCouples = [];
var missingElements = [];
var missingMap = {};
for (i=0; i<code.length; i++) {
// el argumento View es necesario cuando el método es invocado desde el view.
public void invocar (View view) {
startActivityForResult(new Intent(this, Invocado.class), PEDIDO_DE_MENSAJE);
}
;; install: web-mode
;; popup
;; yasnippet
;; js-doc
;; ;; can't get used to spanish keyboard ;_;
;; (global-set-key (kbd "M-;") 'beginning-of-buffer)
;; (global-set-key (kbd "M-:") 'end-of-buffer)
;; full screen
create new identity for ssh
http://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use
using UnityEngine;
using System.Collections;
public class Bullet : MonoBehaviour {
public float Speed = 1;
public float LifeTime;
private float _age;
void Start () {
@pr00thmatic
pr00thmatic / news-blacklist
Created July 13, 2016 15:58
News media with fake news
eldiario.es
http://m.eldiario.es/hojaderouter/internet/libertad_de_expresion-internet-Naciones_Unidas-resolucion_0_535096845.html
#!/bin/bash
# INCORRECTO
# esto es lo primero que intenté, pero estaba leyendo los argumentos
# como si fueran una palabra, como encerrados entre comillas D:
# eso es malo! pdfjam -h mostrará que acepta los nombres de
# varios pdfs que unirá, así que creerá que toda la lista de
# argumentos que le pasé es el nombre de un archivo pdf D: