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 node | |
// utility script to count the max. nesting level on a sass file | |
const fs = require('fs'); | |
const { parse } = require('scss-parser'); | |
const createQueryWrapper = require('query-ast'); | |
const files = process.argv.slice(2); |
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
import org.gnu.glpk.GLPK; | |
import org.gnu.glpk.GLPKConstants; | |
import org.gnu.glpk.GlpkException; | |
import org.gnu.glpk.SWIGTYPE_p_double; | |
import org.gnu.glpk.SWIGTYPE_p_int; | |
import org.gnu.glpk.glp_prob; | |
import org.gnu.glpk.glp_smcp; | |
public class Main { | |
// Minimize z = (x1-x2) /2 + (1-(x1-x2)) = -.5 * x1 + .5 * x2 + 1 |
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
-----BEGIN RSA PRIVATE KEY----- | |
Proc-Type: 4,ENCRYPTED | |
DEK-Info: AES-128-CBC,F626774C824D9ED2C98EEA5B58CBE1F6 | |
VWgn8Z+WHE1EHOKzkwgstWdajAENIQRGhmziwGFUOnemCb2VJaSWoojQhjgY2czN | |
K+yfAn81JGSgr2QkAgE/2VvBoSAVXBnlbtOMwKyeiiBqUazQQg/eZHWJRTilmAH1 | |
d7Cf7gSyZdZLvlu6d/WbYYQkHP39PEYGHM+hBgmkMu9F84dd39+h2k4hVsvBWWGH | |
v2KdC11EpxxdK4zocszFYJ357y516XcM5jiuVxc3kJ+LublPBx6+R75Mg26f+d/j | |
6oEHv1anHg8AMzh1Jlrx3TaV0TPFVfNrJjD48V3ot/1nZRlxKj5qH4+Pgzar3NMZ | |
RumQTzWM4ch7dHW8A8VkBv4WRkZy9SJuq6JQqLEs3/P0P3L13hZ2DdXaoM5/+Ze0 |
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
# https://github.com/docker/for-mac/issues/69 | |
# create the directory to mount | |
mkdir -p ~/test-issue-69/data | |
# this should work | |
docker run --rm -it -v ~/test-issue-69/data:/my-data busybox /bin/touch /my-data/foo | |
# start a container and check periodically if directory is writable | |
docker run --rm -it -v ~/test-issue-69/data:/my-data busybox /bin/sh -c "while true; do sleep 1;touch /my-data/foo&&echo ok; done" |
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
package com.josketres.test.util; | |
import org.hamcrest.FeatureMatcher; | |
import org.hamcrest.Matcher; | |
import java.util.function.Function; | |
/** | |
* Utilities and syntactic sugar stuff for hamcrest. | |
*/ |
#Ejercicio didáctico de pruebas unitarias de software# El programa acepta como entrada una cadena de caracteres, la salida es una lista de los caracteres que esten rodeados por guiones "-".
Por ejemplo: Entrada: aaa-bb-ccc Salida: [bb]
##Restricción arbitraria## Se restringe el uso de expresiones regulares. El programa Main.java debe de ser modificado de tal manera que no se haga uso de la clase java.util.regex.Pattern.
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
@import url(https://fonts.googleapis.com/css?family=Merriweather:300); | |
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,700); | |
.post-body { | |
font-family: 'Merriweather', serif; | |
color: #151515; | |
font-size: 18px; | |
font-weight: 300; | |
line-height: 27px; | |
letter-spacing: -0.01em; |
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
# Useful favorite types to add to eclipse IDE for Java development (TDD) | |
# Add them in Eclipse under: | |
# Window -> Preferences -> Java -> Editor -> Content Assist -> Favorites -> New Type | |
org.hamcrest.MatcherAssert | |
org.hamcrest.Matchers | |
org.junit.Assert | |
org.testng.AssertJUnit | |
org.mockito.Mockito | |
org.mockito.MockitoAnnotations |
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
console.log('hello example'); | |
ddd |
NewerOlder