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
/* Hola mundo */ | |
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
printf("Hola mundo\n"); | |
return 0; | |
} |
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
#!/usr/bin/env python | |
def add_to_path(path, item): | |
return '{}[{}]'.format(path, repr(item)) | |
def dictcompare(old, new, path, differences): | |
old_keys = set(old.keys()) | |
new_keys = set(new.keys()) |
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
~/codigo/kakoune/src (master)$ git log -1 --oneline | |
67559da file.cc: try more portable use of struct stat::st_mtime | |
~/codigo/kakoune/src (master)$ LANG=C make | |
g++ -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -DKAK_DEBUG -MMD -MP -MF .event_manager.d -c -o .event_manager.o event_manager.cc | |
g++ -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -DKAK_DEBUG -MMD -MP -MF .buffer_manager.d -c -o .buffer_manager.o buffer_manager.cc | |
g++ -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -DKAK_DEBUG -MMD -MP -MF .exception.d -c -o .exception.o exception.cc | |
g++ -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -DKAK_DEBUG -MMD -MP -MF .selectors.d -c -o .selectors.o selectors.cc | |
In file included from buffer.hh:6:0, | |
from selection.hh:4, | |
from selectors.hh:4, |
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
def variable_dict(module): | |
v = vars(module) | |
return {x:v[x] for x in v if not x.startswith('__')} | |
import a | |
import b | |
A = variable_dict(a) | |
B = variable_dict(b) | |
A.update(B) |
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
public class App { | |
static String x8mil200µm; // micro symbol | |
static String x7mil175μm; // mu letter | |
static int aβc = 10; | |
static final double π = 3.14159265359; | |
public static void main(String[] args) { | |
x8mil200µm = "Y"; | |
x7mil175μm = "N"; |
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
object f { | |
val floatingPointNumberPattern = """(\d+(?:[.]\d*))""".r | |
def unapply(s: String): Option[Double] = s match { | |
case floatingPointNumberPattern(x) ⇒ Some(x.toDouble) | |
case _ ⇒ None | |
} | |
} | |
object i { | |
val nonNegativeIntegerPattern = """(\d+)""".r |
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
#!/bin/bash | |
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
DIRTYCHAR="●" | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "$DIRTYCHAR" |
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
print "Hola world" |
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
\documentclass[12pt]{beamer} | |
\usepackage[spanish]{babel} | |
\usepackage[utf8]{inputenc} | |
\usepackage{xcolor} | |
\usepackage{listings} | |
\usepackage{palatino} | |
\usefonttheme{serif} | |
\lstloadlanguages{fortran} |
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
# encoding: utf-8 | |
import sphinx.util.texescape as te | |
replacements = ur''' | |
✓ OK | |
✗ XX | |
⁰ \ensuremath{^{0}} | |
¹ \ensuremath{^{1}} | |
² \ensuremath{^{2}} | |
³ \ensuremath{^{3}} |
OlderNewer