Skip to content

Instantly share code, notes, and snippets.

View jcliberatol's full-sized avatar
🧨
Focusing

Juan Liberato jcliberatol

🧨
Focusing
View GitHub Profile
if ( res.type == 'obj/mtl' ) {
var mtlLoader = new THREE.MTLLoader();
var objLoader = new THREE.OBJLoader();
//load the mtl
var rsn = resnames
var idx = i
//This returns a function to upload each resource
var functor = function ( idx, name ) {
return function ( materials ) {
materials.preload();
@jcliberatol
jcliberatol / web-servers.md
Created April 28, 2016 17:51 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@jcliberatol
jcliberatol / valgrindr.sh
Created November 4, 2015 23:42
a valgrind for r
R -d "valgrind --leak-check=full --show-reachable=yes" -f test.R > log.txt 2>&1
@jcliberatol
jcliberatol / prueba.R
Created November 4, 2015 22:24
Probando si funciona itemfix
library(IRTpp)
library(FactoMineR)
testt = simulateTestMD(items = 100,individuals = 1000,dims = 3,clusters = 4,seed = 10)
test = testt$test
upper = testt$clustinit
lower = testt$clustinit + testt$clusters -1
##Estos son los clusters para fix.items
fixedclusts = c(t(matrix(c(upper,lower),nrow = length(testt$clusters))))
fi = fix.items(test,fixedclusts)
##Items reportados por fix.items.

Pushing from a submodule directly to the other repo master branch

You can change the names as you like ...

git add .
git commit -m 'changed submodule'
git checkout -b temp
git branch -f master temp
git checkout master
git branch -d temp
git push origin master
@jcliberatol
jcliberatol / conventions.md
Created June 26, 2015 00:24
code conventions for the dascire.com webpage

###Code conventions for dascire.com webpage.

@jcliberatol
jcliberatol / installingJbilling
Created March 19, 2015 02:51
Installing jbilling on a debian server
1. Search for the oracle 7 debian repository
2. Add the repository iwth add-apt
3. Install Java 7 using apt-get
4. Set the local environments for JRE_HOME and JAVA_HOME
5. Download Jbilling from sourceforge using wget or curl
6. Unzip in the folder
7. Execute the binary file in bin folder.