This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void createDialog(){ | |
progressDialog = new ProgressDialog(this); | |
//progressDialog.vis | |
progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); | |
progressDialog.setCancelable(false); | |
progressDialog.setMessage(getString(R.string.pager_wait_record)); | |
progressDialog.show(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference | |
at android.widget.AbsListView.obtainView(AbsListView.java:2363) | |
at android.widget.ListView.makeAndAddView(ListView.java:1864) | |
at android.widget.ListView.fillDown(ListView.java:698) | |
at android.widget.ListView.fillFromTop(ListView.java:759) | |
at android.widget.ListView.layoutChildren(ListView.java:1673) | |
at android.widget.AbsListView.onLayout(AbsListView.java:2151) | |
at android.view.View.layout(View.java:15689) | |
at android.view.ViewGroup.layout(ViewGroup.java:5040) | |
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'to': REGISTRATION_ID, | |
'message_id': random_id(), | |
'notification': { | |
'body' : 'El body de la notificacion', | |
'title' : 'El titulo de la notificacion', | |
'icon' : 'myicon'}, | |
'data': {'action':'sync', | |
'object': {'formId':'101', | |
'recordId':'45gfteu4', | |
'user':{ 'id': '453', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"limit": 1000, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"total_count": 1 | |
}, | |
"objects": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProductsController < ApplicationController | |
before_action :set_product, only: [:show, :edit, :update, :destroy] | |
# GET /products | |
# GET /products.json | |
def index | |
@products = Product.all | |
end | |
# GET /products/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
var regexp = /[A-E]/gi; | |
var matches_array = str.match(regexp); | |
console.log(matches_array); | |
// ['A', 'B', 'C', 'D', 'E', 'a', 'b', 'c', 'd', 'e'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var content = ''; | |
$('div.carR2').mouseover(function() { | |
content = $(this).find("font").first().text(); | |
im = $(this).find("a").first().find("img").get(0).outerHTML; | |
console.log(im); | |
render_panel(); | |
}); | |
$('div.carR2').mouseout(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Name", | |
"description": "change content.", | |
"version": "3.0", | |
"web_accessible_resources": ["dist/fonts/glyphicons-halflings-regular.eot", | |
"dist/fonts/glyphicons-halflings-regular.woff", | |
"dist/fonts/glyphicons-halflings-regular.ttf", | |
"dist/fonts/glyphicons-halflings-regular.svg"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#Autor | |
#Sandra Cecilia Urbina Coronado | |
#---------------------------------------------------------- | |
import pygame | |
from pygame.locals import * | |
import random, math, sys | |
import time | |
import random | |
import numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import math | |
import sys | |
import filtros | |
import random | |
from math import sqrt, atan2, pi, atan | |
from collections import defaultdict | |
from PIL import ImageDraw | |
import Image | |
import glob |
NewerOlder