Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| function logClass(target: any) { | |
| // save a reference to the original constructor | |
| var original = target; | |
| // a utility function to generate instances of a class | |
| function construct(constructor, args) { | |
| var c : any = function () { | |
| return constructor.apply(this, args); | |
| } |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| var gulp = require('gulp'); | |
| var ts = require('gulp-typescript'); | |
| var https = require('https'); | |
| var fs = require('fs'); | |
| var secrets = require('./secrets.js') | |
| gulp.task('compile', function () { | |
| var tsResult = gulp.src(['src/**/*.ts', 'typings/**/*.d.ts']) | |
| .pipe(ts({ | |
| noImplicitAny: true, |
| cmake_minimum_required(VERSION 3.2) | |
| project(nisqually) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
| add_definitions(-DENTRY_CONFIG_USE_SDL=1) | |
| add_definitions(-DBGFX_CONFIG_RENDERER_OPENGL=1) | |
| IF(APPLE) | |
| set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework SDL2 -framework CoreFoundation -framework Cocoa -framework OpenGL -framework GLUT") |
| # This is probably some pseudo-makefile syntax, but basically I want to do this: | |
| # - The `assets/scss/` dir has a bunch of "top level" Sass files to | |
| # be compiled - foo.scss, bar.scss etc. | |
| # - Note: these files will each generate one resulting .css file of the | |
| # same name as the source inside the build dir. foo.scss -> foo.css etc. | |
| # - The build needs to be re-run any time any partial inside of a | |
| # subdir in the scss folder changes: if `assets/scss/baz/_baz.scss` changes, | |
| # I want to recompile all of the "root" .scss files. | |
| # I.e. all of the partials in subdirs are prerequisites. |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
To remove a submodule you need to:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta charset="utf-8" /> | |
| <script src="templating.js" type="text/javascript" charset="utf-8"></script> | |
| </head> | |
| <body> | |
| <template id=t> |