Skip to content
View mrvaldes's full-sized avatar
🌴
🌴

Block or report mrvaldes

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. MySQL 8.0 SQLAlchemy suffix with SKI... MySQL 8.0 SQLAlchemy suffix with SKIP LOCKED
    1
    # Use compiler extension to change SELECT FOR UPDATE with SKIP LOCKED, supported since MySQL 8.
    2
    # As of SQLAlchemy v1.2 SKIP LOCKED is only compiled for Oracle and PostgreSQL backends.
    3
    # ref: 
    4
    #  https://dev.mysql.com/doc/refman/8.0/en/innodb-locking-reads.html
    5
    #  https://docs.sqlalchemy.org/en/latest/core/selectable.html#sqlalchemy.sql.expression.Select.with_for_update
  2. Example of inplace line editing (upd... Example of inplace line editing (update line by line) on a big file
    1
    def iterate_rainbow(file):
    2
        import mmap
    3
        import contextlib
    4
        import csv
    5
        from io import StringIO
  3. advisory locking example in Mono C# advisory locking example in Mono C#
    1
    using Mono.Unix.Native;
    2
    using System.IO;
    3
    
                  
    4
    static bool TryLockProcess(string file_to_lock)
    5
    {
  4. roflcopter roflcopter
    1
    main(i,n){for(puts("\n L  .--^--\nLOL=   [] \\\n L  \\______]\n    __I__I__/");n=i?"ROFL":"    ";i^=1)printf("\033[1;1H %s:LOL:%s",n,n);}
  5. openlayers custom cluster strategy openlayers custom cluster strategy
    1
    OpenLayers.Strategy.MinvuCustomCluster = OpenLayers.Class(OpenLayers.Strategy.Cluster, {
    2
    	cluster: function (event) {
    3
    		var isPan = (event && event.type == "moveend" && !event.zoomChanged);
    4
    		if ((!event || event.zoomChanged || isPan) && this.features) {
    5
    			var resolution = this.layer.map.getResolution();
  6. rcpsp_simulated_annealing rcpsp_simulated_annealing Public

    Simulated Annealing implementation for the Resource Constrained Project Scheduling Problem

    C++ 1