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
| # Copyright (C) 2021-2024, Mindee. | |
| # This program is licensed under the Apache License 2.0. | |
| # See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details. | |
| import os | |
| os.environ["USE_TORCH"] = "1" | |
| import datetime |
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
| # | |
| # Automatically generated make config: don't edit | |
| # Busybox version: 1.27.2 | |
| # Sat Sep 2 23:28:00 2017 | |
| # | |
| CONFIG_HAVE_DOT_CONFIG=y | |
| # | |
| # Busybox Settings | |
| # |
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
| set noautofocus | |
| set nosmoothscroll | |
| let barposition = "bottom" | |
| let searchlimit = 10 | |
| let scrollstep = 40 |
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
| nvcc --machine 64 -O3 -arch=sm_35 -std=c++11 -I moderngpu-master/include/ -c -I moderngpu/include/ bison.cu | |
| fl.l(39): warning: statement is unreachable | |
| fl.l(40): warning: statement is unreachable | |
| fl.l(41): warning: statement is unreachable | |
| fl.l(42): warning: statement is unreachable | |
| fl.l(43): warning: statement is unreachable |
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
| # Other Stuff | |
| from lib import auth | |
| app = Flask(__name__) | |
| auth.init_app(app) | |
| with app.app_context(): | |
| auth.send_request('whatever') # Same instance as below, but different context. |
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
| pkgname=libtcejdb | |
| pkgver=1.1.12 | |
| pkgrel=1 | |
| pkgdesc="Embedded JSON Database engine" | |
| arch=('i686' 'x86_64') | |
| url="http://ejdb.org" | |
| license=('LGPL') | |
| depends=('zlib') | |
| source=("https://github.com/Softmotions/ejdb/archive/v${pkgver}.tar.gz") | |
| md5sums=('90d0d5aa20c80c67ca2fce7babe807c6') |
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
| /** | |
| * Module dependencies | |
| */ | |
| var express = require('express'); | |
| var fs = require('fs'); | |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| // img path |
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
| import hashlib | |
| from base64 import b64encode | |
| def discid(toc): | |
| u""" | |
| 'first':int, | |
| 'last':int, | |
| 'offsets':[int] | |
| """ | |
| discid=hashlib.sha1() |
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
| # -*- coding: utf-8 -*- | |
| import wave | |
| import struct | |
| def rip(): | |
| from ctypes import CDLL,POINTER,c_short | |
| cdio=CDLL('libcdio.so') | |
| paranoia=CDLL('libcdio_paranoia.so') | |
| h=cdio.cdio_open('/dev/cdrom',13) |
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
| import wave | |
| import random | |
| import struct | |
| import datetime | |
| SAMPLE_LEN = 44100 * 3 # 300 seconds of noise, 5 minutes | |
| print "Create file using wave, storing frames in an array and using writeframes only once" | |
| noise_output = wave.open('noise2.wav', 'w') |
NewerOlder