Skip to content

Instantly share code, notes, and snippets.

Arrow functions

@kopecmi8
kopecmi8 / cell0.js
Last active May 6, 2024 10:46
template literals
var person = {
name: 'Michal',
surname: 'Kopecký',
}
var greetings = 'Hi, ' + person.name + ' ' + person.surname + '!';

Classes

@kopecmi8
kopecmi8 / cell0.js
Last active May 6, 2024 10:45
extended parameter handlling
function createProduct(price, productNumber, name, description) {
return {
price: price,
code: productNumber,
name: name,
desc: description
}
}
function discountCreateProduct(price, ...params) { ///tady se jedná o rest parameter
class="[a-zA-Z0-9:;\.\s\(\)\-\,]*"

Modules

@MichalBryxi
MichalBryxi / components.my-component\.js
Last active May 6, 2024 10:44
async-await-shenanigans
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class extends Component {
@tracked foo = undefined;
@tracked bar = undefined;
@action
async clickMe() {
@akabe1
akabe1 / frida_multiple_unpinning.js
Last active May 6, 2024 10:44
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f <APP_ID> -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function() {
Java.perform(function() {
console.log('');