Skip to content

Instantly share code, notes, and snippets.

View v3ss0n's full-sized avatar
🚀
Avaliable

Phyo Arkar Lwin v3ss0n

🚀
Avaliable
View GitHub Profile
@v3ss0n
v3ss0n / styles.less
Created September 1, 2014 18:14
my atom.io stylesheet for Seti-Themed Setting dialog, with various usbility enhancements.
.editor {
.invisible-character {
opacity: 0.2;
}
.entity.name.type {
40343.1 ms51.77 % 40343.1 ms51.77 % (idle)
22644.0 ms29.06 % 22644.0 ms29.06 % (program)
5759.9 ms7.39 % 5759.9 ms7.39 % set scrollTop
793.9 ms1.02 % 824.0 ms1.06 % /opt/atom/share…erations.js:71CSSPropertyOperations.setValueForStyles
319.4 ms0.41 % 319.4 ms0.41 % get offsetHeight
306.4 ms0.39 % 576.7 ms0.74 % /opt/atom/share…ion-view.js:35(anonymous function)
282.3 ms0.36 % 282.3 ms0.36 % set innerHTML
271.3 ms0.35 % 3018.6 ms3.87 % /opt/atom/share…ponent.js:1294boundMethod
263.3 ms0.34 % 264.3 ms0.34 % set textContent
247.3 ms0.32 % 260.3 ms0.33 % /opt/atom/share…ergeInto.js:33mergeInto
18576.5 ms42.40 % 18576.5 ms42.40 % (program)
12678.1 ms28.94 % 12678.1 ms28.94 % (idle)
4592.3 ms10.48 % 4592.3 ms10.48 % set scrollTop
660.0 ms1.51 % 676.1 ms1.54 % /opt/atom/share…erations.js:71CSSPropertyOperations.setValueForStyles
255.4 ms0.58 % 255.4 ms0.58 % get offsetHeight
249.4 ms0.57 % 490.8 ms1.12 % /opt/atom/share…ion-view.js:35(anonymous function)
238.4 ms0.54 % 2302.7 ms5.26 % /opt/atom/share…ponent.js:1294boundMethod
232.4 ms0.53 % 232.4 ms0.53 % set textContent
223.4 ms0.51 % 223.4 ms0.51 % set innerHTML
221.4 ms0.51 % 306.5 ms0.70 % /opt/atom/share…-buffer.js:432module.exports.TokenizedBuffer.indentLevelForRow
40343.1 ms51.77 % 40343.1 ms51.77 % (idle)
22644.0 ms29.06 % 22644.0 ms29.06 % (program)
5759.9 ms7.39 % 5759.9 ms7.39 % set scrollTop
793.9 ms1.02 % 824.0 ms1.06 % /opt/atom/share…erations.js:71CSSPropertyOperations.setValueForStyles
319.4 ms0.41 % 319.4 ms0.41 % get offsetHeight
306.4 ms0.39 % 576.7 ms0.74 % /opt/atom/share…ion-view.js:35(anonymous function)
282.3 ms0.36 % 282.3 ms0.36 % set innerHTML
271.3 ms0.35 % 3018.6 ms3.87 % /opt/atom/share…ponent.js:1294boundMethod
263.3 ms0.34 % 264.3 ms0.34 % set textContent
247.3 ms0.32 % 260.3 ms0.33 % /opt/atom/share…ergeInto.js:33mergeInto
@v3ss0n
v3ss0n / retk_read
Created April 10, 2015 08:10
Preformance test of rethinkdb Reads.
{
"cells": [
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": false
},
"outputs": [
{
@v3ss0n
v3ss0n / infinilist-test.js
Last active August 29, 2015 14:23
qooxdoo infinilist
qx.Class.define('Mylist', {
extend: qx.ui.list.List,
members: {
__deferredCall: null,
__scrollBottom: false,
__updateCount: 0,
__resizeCount: 0,
_initLayer: function() {
qx.Class.define("phwabe.ChatView.ChatItems", {
extend: qx.ui.core.Widget,
include: [qx.ui.form.MModelProperty],
construct: function() {
this.base(arguments);
this._eventBus = qx.event.message.Bus;
// console.log(this._highlighter)
this._date = new Date()
this._highlighter = hljs
@v3ss0n
v3ss0n / fuzzer_overflow.py
Last active August 29, 2015 14:23
enjoy
import subprocess
def fuzz_overflow(cmd,rng = 1*1024*1024 ):
for payload in xrange (1, rng):
payload = "A" * payload
try:
output = subprocess.check_output([cmd, '%s' % payload ])
except:
output = ""
print "Overflow occoured"
/* ************************************************************************
Copyright: Hexcode Technologies
License:LGPL
Authors: Phyo Arkar Lwin
************************************************************************ */
@v3ss0n
v3ss0n / MultiUploader.js
Created September 25, 2015 10:51
MultiUploader for qooxdoo (Can upload files and blobs and can use it to display nice progressbar) .
// License LGPL
// Requires John's Zenesis UploadMgr addon and based upon it
// http://qooxdoo.org/contrib/project/uploadmgr
// With this , we can use it to upload multiple files in ajax way , without needing UI Widget.
// Useful for uploading Blobs and files .
qx.Class.define("phwabe.utils.MultiUploader", {
extend: com.zenesis.qx.upload.AbstractHandler,
construct: function(uploader) {
this.base(arguments);