Skip to content

Instantly share code, notes, and snippets.

View wilsoncampusano's full-sized avatar
🎯
Focused

Wilson Campusano Jorge wilsoncampusano

🎯
Focused
View GitHub Profile
#models.py
#Stdlib imports
import datetime
#Django core Imports
from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser, PermissionsMixin
)
def main():
lista =[1, 4, 5 , 5, 6 , 3 ,1]
a= [(lambda x: lista.insert(x,0) ) (idx) for idx, v in enumerate(lista) if v == 5]
if __name__ == '__main__':
main()
@wilsoncampusano
wilsoncampusano / lot-of-fun
Created September 20, 2014 17:12
Django url mapping
#framework = Django
#lot of fun
url(r'^$lists/my-list)
@wilsoncampusano
wilsoncampusano / IntelliJ_IDEA__Perf_Tuning.txt
Created December 28, 2015 15:02 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1