This file contains hidden or 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
| var a='{"Table" : [{"userid" : "11","name" : "KumarP","designation" : "Business Head","phone" : "9789234793","email" : "surfingkumar@gmail.com","role" : "Admin", "empId" : "EI003","reportingto" : "KumarP"}]}'; | |
| a=a.replace(/"(\w+)"\s*:/g, '$1:'); | |
| alert(a); |
This file contains hidden or 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 Reinas(solucion,etapa,n): | |
| if etapa>=n: # si la etapa es mayor que n, entonces devolvemos falso | |
| return False | |
| #solucion.append(0) | |
| exito = False # inicializamos exito a False | |
| while True: | |
| if (solucion[etapa] < n): # si el valor de la columna para la fila es mayor o igual que n, entonces no seguimos incrementando, con esto evitamos indices fuera del array. |
This file contains hidden or 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
| In Django 1.6 you have to change the SESSION_SERIALIZER parameter to pickle. Put this in your settings.py: | |
| SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer' | |
| I don't know when allauth will become compatible with this new Django serialization format. See Django 1.6 release notes. |
This file contains hidden or 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
| <Directory /> | |
| AllowOverride All | |
| Order Deny,Allow | |
| Deny from all | |
| </Directory> | |
| or | |
| <Directory /var/www/> | |
| Options Indexes FollowSymLinks MultiViews |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| <canvas id = "c" > </canvas> | |
| <a target="_blank" href="http://codepen.io/stuffit/pen/fhjvk" id="p">New pen: Like playing with physics? Click here!</a> | |
| <div id="info"> | |
| <div id="top"> | |
| <a target="_blank" id="site" href="http://lonely-pixel.com">my website</a> | |
| <a id="close" href="">close</a> | |
| </div> | |
| <p> |