Skip to content

Instantly share code, notes, and snippets.

@rochapablo
rochapablo / .js
Created August 8, 2018 11:36
Class to Object
console.clear();
var Track = function(attrs) {
this.icon = (attrs && attrs.icon || 'play_arrow');
this.toggle = (attrs && attrs.toggle || 'close');
this.arrow = (attrs && attrs.arrow || 'keyboard_arrow_down');
this.toObject = function() {
var newObject = {};
for (var prop in this) {
if (this.hasOwnProperty(prop) && typeof this[prop] !== 'function') {
module.exports = {
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.json'
}
},
moduleFileExtensions: [
'ts',
'js'
],
@rochapablo
rochapablo / .regex
Last active October 16, 2018 11:57
Android Studio - Ignoring Junk Logcast
^(?!(SocketClient|DeviceStorageMonitorService|libc-netbsd|wpa_supplicant|EnterpriseController|Netd|BufferQueueProducer|SurfaceFlinger|NetworkController|memtrack_graphic|ConnectivityService|MARsPolicyManager|MARsDBManager|SSRM|Clock|DateView|SSRM|BatteryService|Watchdog|NetlinkEvent|AlarmManager|KeyguardUpdateMonitor|arqp|armt|SignalClusterView|GameManagerService|PowerUI|MotionRecognitionService|ContactsProvider_EventLog|Tzdaemon|TLC_TIMA_PKM_measure_kernel|BroadcastQueue|BatteryMeterView|SensorManager|Sensors|PowerManagerService|BatteryStatsImpl|BarTender|Authzen|AbsListView|ViewRootImpl|InputDispatcher|PointerIcon|PhoneStatusBar|StatusBarManagerService|BufferQueue|BufferQueueConsumer|Surface|mali_winsys|GraphicBuffer|AbsListView|bt_btm))
@rochapablo
rochapablo / index.html
Last active March 12, 2020 18:17
after ajax request
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>