📓 Table of Contents 📚 Resources ✉️ Chat
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
{ | |
"breadcrumbs.enabled": false, | |
"editor.fontFamily": "'MonoLisa', 'Dank Mono', 'Operator Mono Lig', 'Operator Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": "400", | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": "explicit", | |
"editor.stickyScroll.enabled": true, | |
"explorer.sortOrder": "type", | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.highlightModifiedTabs": true, |
📓 Table of Contents 📚 Resources ✉️ Chat
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
#EXTM3U url-tvg="https://iptvx.one/EPG" | |
#EXTINF:-1, O-la-la | |
http://31.148.48.15:80/O-la-la/index.m3u8?token=test | |
#EXTINF:-1, Erox | |
http://94.229.250.73:8008/play/a002 | |
#EXTINF:-1, Playboy | |
http://190.11.225.124:5000/live/playboy_hd/playlist.m3u8 | |
#EXTINF:-1 tvg-logo="http://wow-model.com/wp-content/uploads/2017/09/visit-x-tv.jpg", Visit-X | |
http://stream.visit-x.tv:1935/vxtv/live_720p/playlist.m3u8 | |
#EXTINF:-1, Шелк |
This is a workaround for automatically installing the OnEdit trigger to the copied Google Spreadsheet using Google Apps Script.
The sample situation for this workaround is as follows.
installedOnEdit
for executing by the installable OnEdit trigger.Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
/* | |
* Consider a simple recursive function like: | |
* f(x) = if (x > 1) f(x - 1) + x | |
* else 0 | |
* | |
* This function isn't tail recursive (it could be, but let's set that aside for a moment). | |
* How can we mechanically, which is to say without thinking about it, convert this into a stack safe recursion? | |
* An approach is to model everything that happens after the recursion as a continuation, and build up that | |
* continuation in a stack safe manner. Here is some example code: | |
*/ |
/* | |
Minimal SDL2 + OpenGL3 example. | |
Author: https://github.com/koute | |
This file is in the public domain; you can do whatever you want with it. | |
In case the concept of public domain doesn't exist in your jurisdiction | |
you can also use this code under the terms of Creative Commons CC0 license, | |
either version 1.0 or (at your option) any later version; for details see: | |
http://creativecommons.org/publicdomain/zero/1.0/ |
// To compile with gcc: (tested on Ubuntu 14.04 64bit): | |
// g++ sdl2_opengl.cpp -lSDL2 -lGL | |
// To compile with msvc: (tested on Windows 7 64bit) | |
// cl sdl2_opengl.cpp /I C:\sdl2path\include /link C:\path\SDL2.lib C:\path\SDL2main.lib /SUBSYSTEM:CONSOLE /NODEFAULTLIB:libcmtd.lib opengl32.lib | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <assert.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> |
A JSON compilation database is a very handy output format which is parsed and used by many development tools. Unfortunately for us Apple Developers, it is not straightforward to generate one from within Xcode, as it is (probably) not Apple's priority and therefore there is no toggle/switch/setting that can be easily enabled to get this information.
There is however a solution, thanks to Apple using Clang/LLVM as their main toolchain.
The standard way to generate this with clang would be to use the -MJ
flag and give it a file name that typically corresponds to the input file. Using this flag indirectly through Xcode is hard, given that we're not aware of all the other arguments when a compiler call is executed.
However, there is a second hidden/badly documented LLVM flag: -gen-cdb-fragment-path
- it is implemented in terms of -MJ
and has the same functionality, but it's argument in contrast is an output directory.