What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-03-12 01:40:01
PYTHON STACK FUNCTION count the valid number of brackets Returns the total number of valid brackets in the string
import sys def error(c, line_number, column_number): print 'Error: unmatched', c, 'line', line_number, 'column', column_number def check(stack, wanted, c, line_number, column_number): if stack[-1] != wanted: error(c, line_number, column_... Add solution -
Python 2022-01-23 08:56:00
python measure volum from audio file
import os, sys, pygst pygst.require('0.10') import gst, gobject gobject.threads_init() def get_peaks(filename): global do_run pipeline_txt = ( 'filesrc location="%s" ! decodebin ! audioconvert ! ' 'audio/x-raw-int,chann... Add solution -
SQL 2021-11-10 19:59:23
cursor procedure with python mssql get result
#********************************************************************** # FILENAME : CallSPMultiResultSet.py # # DESCRIPTION : # Simple ODBC (pyodbc) example to SELECT data from two tables # via a stored procedure, returning... Add solution -
Go 2021-11-04 08:34:13
uncloaking google colaboratory
<?phprequire __DIR__ . '/vendor/autoload.php';if (php_sapi_name() != 'cli') { throw new Exception('This application must be run on the command line.');}/** * Returns an authorized API client. * @return Google_Client the authorized client object */fu... Add solution -
Python 2021-10-01 01:53:03
python xlrd date
import datetime, xlrd book = xlrd.open_workbook("myexcelfile.xls") sh = book.sheet_by_index(0) a1 = sh.cell_value(rowx=0, colx=0) a1_as_datetime = datetime.datetime(*xlrd.xldate_as_tuple(a1, book.datemode)) print 'datetime: %s' % a1_as_datetime Add solution