Coder Social home page Coder Social logo

miguelgfierro / codebase Goto Github PK

View Code? Open in Web Editor NEW
53.0 6.0 16.0 2.88 MB

Code base for programming projects

Home Page: https://miguelgfierro.com

License: Other

C++ 0.90% CMake 0.15% MATLAB 3.00% HTML 3.90% CSS 5.88% JavaScript 4.17% SQL 1.03% Dockerfile 0.16% Shell 0.50% PHP 0.53% TSQL 0.23% TeX 77.41% Python 0.05% SCSS 2.09%
codebase programming-tools

codebase's Introduction

Languages Commits Last commit

Linkedin Blog

Codebase for programming projects

This is a codebase of useful code pieces in multiple programming languages that I have used in my projects.

To clone:

git clone --recursive [email protected]:miguelgfierro/codebase.git

To update the submodules:

git submodule update --remote --merge

codebase's People

Contributors

miguelgfierro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

codebase's Issues

python pandas value selection/accesing

iter over rows:

df = pd.DataFrame({'a': randn(1000), 'b': randn(1000),'N': randint(100, 1000, (1000)), 'x': 'x'})

%timeit [row.a * 2 for idx, row in df.iterrows()]
# => 10 loops, best of 3: 50.3 ms per loop

%timeit [row[1] * 2 for row in df.itertuples()]
# => 1000 loops, best of 3: 541 µs per loop

plan python structure

Brainstorm:

  • - pandas
  • - I/O
  • - URLs
  • - Text transformation
  • - Numpy
  • - Test management
  • - Timer
  • - Logger
  • - Database
  • - Math
  • - ML
  • - Computer Vision
  • - Plot
  • - Data generator
  • - API

select top limit ...

SELECT TOP (1) [patient_id]
      ,[number_images]
      ,[array]
  FROM [lung_cancer].[dbo].[scan_images]

python generators

def chunks(l, n):
    """Yield successive n-sized chunks from l."""
    for i in range(0, len(l), n):
        yield l[i:i + n]

io

with open(filename) as f:
...


try:
    import cPickle as pickle
except:
    import pickle

sql order last date

sql_select_newer = """
SELECT TOP(1) *
FROM dbo.test_numpy_io 
WHERE patient_id = ? ORDER BY timet DESC
"""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.