Skip to content

Instantly share code, notes, and snippets.

View GreatWizard's full-sized avatar
☃️
Working from home

Guillaume Gérard GreatWizard

☃️
Working from home
View GitHub Profile
@GreatWizard
GreatWizard / capsunlocked_cu65.json
Created November 25, 2022 11:18
CapsUnlocked CU65 French ISO (via configuration)
{
"name": "CapsUnlocked CU65",
"vendorProductId": 1129644133,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GESC",
"KC_1",
"KC_2",
"KC_3",
'use strict'
const Funnel = require('broccoli-funnel')
const mergeTrees = require('broccoli-merge-trees')
module.exports = {
name: require('./package').name,
treeForPublic(tree) {
let trees = []
@GreatWizard
GreatWizard / components.-get-pkmn\.js
Last active March 27, 2020 16:02
promise-rendering
import Component from '@glimmer/component';
import fetch from 'fetch';
export default class GetPkmnComponent extends Component {
get getPokemon() {
let { model, forceReject } = this.args;
return fetch(`//pokeapi.co/api/v2/pokemon/${model}`).then(function(response) {
return new Promise((resolve, reject) => {
setTimeout(() => {
if (!forceReject && response.ok) {
@GreatWizard
GreatWizard / controllers.application.js
Last active April 9, 2019 08:43
check on get infinite loop
import Ember from 'ember';
import { computed } from '@ember/object';
export default Ember.Controller.extend({
something: 0,
myPropNow: "meh",
myProp: computed('something', function () {
let newValue = this.something + 1
if (this.myPropNow && this.myPropNow === 'meh') {
newValue++
#!/usr/bin/env python
# coding: utf-8 -*-
# This is mostly the same as https://github.com/Steveice10/FBI/blob/master/servefiles/servefiles.py, with a few minor tweaks
# 1. Support for nsps was added
# 2. Support for ranged http requests was added from https://gist.github.com/shivakar/82ac5c9cb17c95500db1906600e5e1ea
import os
import socket
import struct
@GreatWizard
GreatWizard / opo_guide.md
Last active May 31, 2017 07:46
OnePlus One Guide
Verifying that +guillaume is my blockchain ID. https://onename.com/guillaume