Skip to content

Instantly share code, notes, and snippets.

Writing Useless commit messages

Islem Maboud ipenywis

Writing Useless commit messages
View GitHub Profile
ipenywis / inject.c
Created Aug 20, 2018 — forked from hfiref0x/inject.c
Process Doppelgänging
View inject.c
// Ref = src
// Credits:
// Vyacheslav Rusakov @swwwolf
// Tom Bonner @thomas_bonner
#include <Windows.h>
ipenywis / 0.
Created Sep 23, 2018 — forked from jquense/0.
Alternative ways to define react Components
View 0.

The 0.13.0 improvements to React Components are often framed as "es6 classes" but being able to use the new class syntax isn't really the big change. The main thing of note in 0.13 is that React Components are no longer special objects that need to be created using a specific method (createClass()). One of the benefits of this change is that you can use the es6 class syntax, but also tons of other patterns work as well!

Below are a few examples creating React components that all work as expected using a bunch of JS object creation patterns ( All of the examples are of stateful components, and so need to delegate to React.Component for setState(), but if you have stateless components each patterns tends to get even simpler. The one major caveat with react components is that you need to assign props and context to the component instance otherwise the component will be static. The reason is

ipenywis / gist:535bee7e2e204dfbd4757a443e4401e7
Created Jan 9, 2020 — forked from freyes/gist:dfc3f5232526a62bbc09adc816e0477d
bluetoothd: a2dp-sink profile connect failed for AA:BB:CC:DD:EE:00: Protocol not available
View gist:535bee7e2e204dfbd4757a443e4401e7
Bug and possible solution: actually I found a bug in that make the headset unusable, it seems that the pulse audio module: module-bluetooth-discover works only if started after the X11 session is up. So I have a workaround.
Edit the file:
View TypeScript nwb.config.js
module.exports = {
type: 'react-component',
npm: {
cjs: false,
esModules: false,
umd: false
polyfill: false,
webpack: {
config(config) {
ipenywis / gist:ae9cbc790c65980612e494e5e187f771
Created Sep 11, 2020 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:ae9cbc790c65980612e494e5e187f771


:bowtie: :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: