The procedure I used to convert the repo cerebrum_sites from CVS to Git.
Based on http://www.embecosm.com/appnotes/ean11/ean11-howto-cvs-git-1.0.html.
Install cvsclone and its dependency flex:
| { | |
| "cmd": ["perl", "-w", "$file"], | |
| "file_regex": ".* at (.*) line ([0-9]*)", | |
| "selector": "source.perl" | |
| } |
The procedure I used to convert the repo cerebrum_sites from CVS to Git.
Based on http://www.embecosm.com/appnotes/ean11/ean11-howto-cvs-git-1.0.html.
Install cvsclone and its dependency flex:
| #include <iostream> | |
| #include <hdf5.h> | |
| // Constants | |
| const char saveFilePath[] = "test.h5"; | |
| const hsize_t ndims = 2; | |
| const hsize_t ncols = 3; | |
| int main() |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| import h5py | |
| import os | |
| def _report(operation, key, obj): | |
| type_str = type(obj).__name__.split(".")[-1].lower() | |
| print "%s %s: %s." % (operation, type_str, key) | |
| def h5py_compatible_attributes(in_object): | |
| '''Are all attributes of an object readable in h5py?''' | |
| try: |
| #include <cstdint> | |
| #include <iostream> | |
| #include <memory> | |
| #include <string> | |
| #include <curl/curl.h> | |
| #include <json/json.h> | |
| namespace | |
| { |
| #include <curl/curl.h> | |
| #include <string> | |
| size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) { | |
| data->append((char*) ptr, size * nmemb); | |
| return size * nmemb; | |
| } | |
| int main(int argc, char** argv) { | |
| auto curl = curl_easy_init(); |
| The following trivial example program uses getopt() to handle two program options: -n, with no associated value; and -t val, which expects an associated value. | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| int flags, opt; |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <ifaddrs.h> | |
| #include <sys/types.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/socket.h> | |
| #include <linux/wireless.h> |
| import requests | |
| API = "https://api.wmdb.tv/api/v1/top?type={movie_type}&skip=0&limit={limit}" | |
| def get_top_movies(movie_type, limit=250): | |
| r = requests.get(API.format(movie_type=movie_type, limit=limit)) | |
| if not r.ok: | |
| raise Exception(f"Can not get movies for {movie_type} type") | |
| return r.json() |