Skip to content

Instantly share code, notes, and snippets.

Avatar

Pablo rochapablo

View GitHub Profile
@rochapablo
rochapablo / index.html
Last active Mar 12, 2020
after ajax request
View index.html
<!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>
@rochapablo
rochapablo / .regex
Last active Oct 16, 2018
Android Studio - Ignoring Junk Logcast
View .regex
^(?!(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))
View jest.config.js
module.exports = {
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.json'
}
},
moduleFileExtensions: [
'ts',
'js'
],
@rochapablo
rochapablo / .js
Created Aug 8, 2018
Class to Object
View .js
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') {
@rochapablo
rochapablo / .js
Created Aug 8, 2018
ECMAScript 6 - Classes
View .js
class Movie {
constructor() {
this.title = '';
}
getTitle() {
return this.title;
}
setTitle(title) {
this.title = title;
}
@rochapablo
rochapablo / .css
Last active Aug 8, 2018
angular-soundmanager2 (loop testing)
View .css
ul { margin: 0; padding: 0; }
ul li { list-style: none; margin-bottom: 8px; }
hr { border: 0; border-top: solid 1px #d9d9d9; }
@rochapablo
rochapablo / .js
Created Aug 8, 2018
Array of Object with Pagination
View .js
console.clear();
var data = [];
for (var i = 1; i <= 15; i++) {
var uuid = faker.random.uuid();
data.push({
id: i,
name: faker.name.findName(),
email: faker.internet.email(),
@rochapablo
rochapablo / .js
Created Jul 26, 2018
Promise Tuple
View .js
(function() {
console.clear()
const a = () => {
return Promise.resolve({ value: 'a' })
}
const b = () => {
return Promise.resolve({ value: 'b' })
}
@rochapablo
rochapablo / .html
Created Jul 26, 2018
Fixed Table with Bootstrap
View .html
<div class="container-fluid h-100 d-flex align-items-stretch bg-red">
<div class="row">
<div class="col-12 d-flex align-items-stretch bg-orange">
<div class="row">
<div class="col-3 bg-green">
<div class="row d-flex flex-column h-100">
<div class="col-12 bg-pink">filter</div>
<div class="col-12 bg-blue">
<table class="table">
<thead>
View settings.json
{
"editor.minimap.enabled": false,
"html.format.wrapLineLength": 0
}
You can’t perform that action at this time.