Skip to content

Instantly share code, notes, and snippets.

View leo60228's full-sized avatar
🦀
🦀

leo60228 leo60228

🦀
🦀
View GitHub Profile
@leo60228
leo60228 / SassMeister-input.scss
Created February 6, 2015 18:58
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
/* CSS Comments */
$color1: #5050ff;
$color2: transparentize($color1, 0.5);
$unquotedstring: Hello;
@leo60228
leo60228 / designer.html
Created February 28, 2015 18:51
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@leo60228
leo60228 / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@leo60228
leo60228 / README.md
Last active August 29, 2015 14:22
ESPath Asyncify Syntax XPath

What is this?

This is a XPath, to be parsed with DefiantJS, that can be used to parse the current Asyncify syntax when supplied with a ESPath generator.

What is Asyncify?

Asyncify is intended to be an upcoming JS extension allowing to make async code sync and sync code async through special operators modifing the code structure.

How do I use this?

Currently there is no implementation, but that will soon be implemented with the upcoming repo snuggles08/asyncify-js. To make your own implementation, use the following mini-specs:

Specs

Use an ESPath generator to generate the sample ESPath. Use the XPath on the ESPath with DefiantJS. If there are any matches, use the output to create the output described in the sample input and output. Note that only one XPath has been created at this time, look for updates for more features.

@leo60228
leo60228 / echo.html
Last active October 2, 2015 23:15
Echos HTTP Hashtags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<style>
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,text
@leo60228
leo60228 / exploit.md
Created August 25, 2016 23:08
*Possible* 3DS 11.0 Downgrade "Exploit"

Notes:

  • Technically still dsiwarehax.
  • Just an alternate method of running it.
  • Exploit in Pokemon Gen 5 may work, probably won't, but is not the focus of this.
  • Requires a large time and monetary investment to run publicly.

Reasons why this could fail:

  • Only test done with CFW. Loader patches were turned off.
  • Not enough space in .text. May be able to be worked around (modded HB service?).
  • Not enough permissions. See above.
@leo60228
leo60228 / 1README.md
Last active March 26, 2017 01:34
Pointers for sweet.js

Pointers for sweet.js

Usage

ptr test = 5;

console.log(acc test);

function process(testPtr) {
 acc testPtr = acc testPtr + 2;
function EventEmitter(){let c=[];return{on:(d,f)=>{c.push({a:d,b:f})},emit:d=>{Promise.all(c.filter(f=>f.a==d))}}}
@leo60228
leo60228 / EventEmitter.js
Last active June 18, 2018 20:31
<0.3KB EventEmitter
"use strict";function EventEmitter(){var c=[];return{on:function(d,f){c.push({a:d,b:f})},emit:function(d){c.filter(function(f){return f.a==d}).forEach(function(f){return f.b()})},off:function(d){c.splice(c.indexOf(d),1)}}}
@leo60228
leo60228 / docs.md
Last active March 12, 2017 20:57
Extension API Docs

Loading Extensions

All .js files in extensions/ are loaded and used as Extensions.

Extension

An Extension is simply a standard Node.js module that exports an ExtensionFunc.

ExtensionFunc

A function with the following properties:

ExtensionFunc.configNamespace: String?