Skip to content

Instantly share code, notes, and snippets.

View cswl's full-sized avatar
🎯
Focusing

cswl

🎯
Focusing
View GitHub Profile
//Paste this function in DevTools console inside Discord
(function () {
let stop;
let popup;
popup = window.open('', '', 'width=800,height=1000,top=0,left=0');
if (!popup) return console.error('Popup blocked! Please allow popups and try again.');
popup.document.write(`<!DOCTYPE html>
<html><head><meta charset='utf-8'><title>Delete Discord Messages</title><base target="_blank">
<style>body{background-color:#36393f;color:#dcddde;font-family:sans-serif;} a{color:#00b0f4;}
@cswl
cswl / torn.items.user.js
Created October 16, 2019 10:05
Torn Modified User Scripts.
// ==UserScript==
// @name TORN: Item Value
// @version 2.0.0
// @author DeKleineKobini
// @description Show the value for your items.
// @namespace dekleinekobini.itemvalue
// @require https://openuserjs.org/src/libs/DeKleineKobini/DKK_Torn_Utilities.js
// @updateURL https://openuserjs.org/meta/DeKleineKobini/TORN_Item_Value.meta.js
// @match https://www.torn.com/item.php
// @license MIT
@cswl
cswl / PKGBUILD
Last active September 3, 2022 21:52
Patch for AnBox on LXC 3.0
# Maintainer: Iwan Timmer <[email protected]>
pkgname=('anbox-git' 'anbox-modules-dkms-git')
_pkgname=anbox
pkgver=r702.3cf7d60
pkgrel=1
epoch=1
arch=('x86_64')
url="http://anbox.io/"
license=('GPL3')
@cswl
cswl / Code_Of_Conduct.md
Created April 4, 2018 15:02
DCN Code of Conduct

Developers Circle Nepal hereby referred as DCN for short is a friendly place to learn, share, and grow.
We’re committed to keeping it that way.

By being a member of DCN, you agree that you'll follow this code of conduct.

In short: Be nice. No harassment or spamming.

  • Harassment includes sexual language and imagery, deliberate intimidation, stalking, name-calling, unwelcome attention, libel, and any malicious hacking or social engineering. DCN should be a harassment-free experience for everyone, regardless of gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size, race, national origin, or religion (or lack thereof).
  • Spamming includes posting off-topic messages to disrupt discussions, promoting a product, soliciting donations, advertising a job / internship / gig, or flooding discussions with files or text.
var Discord = require('discord.io');
var bot = new Discord.Client({
autorun: true,
// your discord token
token: ""
});
var count = 0;
function getRandomInt(min, max) {
@cswl
cswl / BleedingEdgeApplication.js
Last active December 8, 2016 13:34
React native NavigatorExperimental
import React, { Component } from 'react';
import { NavigationExperimental, ScrollView, Text, TouchableHighlight } from 'react-native';
const {
StateUtils: NavigationStateUtils,
} = NavigationExperimental;
import styles from './styles'
import MyVerySimpleNavigator from './MyVerySimpleNavigator'
export default class BleedingEdgeApplication extends Component {
var microtime = require('microtime')
// @microtimer
// function for_let_loop() .. okay no :(
{ //block scoping :D
const start = microtime.now();
for(let i = 0; i < 1e8; ++i){}
#!/data/data/com.termux/files/usr/bin/sh
# sudo for Termux
# For security reasons some environent variables are reset by su
# So we need to set LD_LIBRARY_PATH
# Root's HOME is set to 'termux's home/.suroot'.
# Startup files and other stuffs can be added there.
ROOT_HOME=$HOME/.suroot