Skip to content

Instantly share code, notes, and snippets.

View NoCtrlZ1110's full-sized avatar
🥴
life has no ctrl+z !

Nguyễn Văn Huy NoCtrlZ1110

🥴
life has no ctrl+z !
View GitHub Profile
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mobile/app_theme.dart';
class CustomButtonBlue extends StatefulWidget {
final String text;
final double height, width;
final Icon icon;
final Function press;
def findClosestPoint(location, goalArray):
closest = 0
closestCost = util.manhattanDistance( location, goalArray[0] )
for j in range(len(goalArray)):
cornerLocation = goalArray[j]
lengthToCorner = util.manhattanDistance( location, cornerLocation )
setInterval(()=>{$(document).ready(function() {
var e = $.Event('keydown', { keyCode: Math.floor(Math.random() * 100) + 1 });
$(document).trigger(e);
});},100);
@NoCtrlZ1110
NoCtrlZ1110 / gist:c9edbf969e7ed10ca1562c0f014b3c7d
Last active March 13, 2021 07:56
PHÒ'S MEMRISE RANKING!
javascript: function makeHttpObject() { try { return new XMLHttpRequest(); } catch (error) {} try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (error) {} try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (error) {} throw new Error("Could not create HTTP request object!");}var arr = [ { name: "Nguyễn Văn Huy", id: 41002308 }, { name: "Phan Văn Minh", id: 44634577 }, { name: "Nguyễn Thị Xuân", id: 40435014 }, { name: "Đặng Văn Manh", id: 44354858 }, { name: "Ngô Văn Hào", id: 40266280 }, { name: "Lê Thị Tâm", id: 40269547 },];var getPoint = new Promise(function (resolve, reject) { let count = 0; let result = []; arr.forEach((element, i, array) => { var request = makeHttpObject(); request.open( "GET", `https://app.memrise.com/api/user/get/?user_id=${element.id}&with_leaderboard=true` ); request.send(null); request.onreadystatechange = function () { if (request.readyState == 4) { count++; var data = JSON.parse(request.respons
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
activeTab: "🚀",
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
{"lastUpload":"2021-10-25T03:40:52.407Z","extensionVersion":"v3.4.3"}