Skip to content

Instantly share code, notes, and snippets.

View moizest89's full-sized avatar
🎯
Focusing

Moises Portillo moizest89

🎯
Focusing
View GitHub Profile
Sub printImage
Dim aniamlPic As Picture
Dim picLocation AS String
Dim animalName As String
animalName = Worksheets("Sheet1").Cells(2.2).Value
picLocation = ActiveWorkbook.Path & "\fotoFichas\" & P0001.JPG"
With Worksheets("Sheet1").Cells(2.3)

Raw Request

POST https://reportesapp.fgr.gob.sv/rest/v1/api/file/upload

Content-Type: application/json; charset=UTF-8
Content-Length: 4510415
authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBWUZMT1JFUyIsImlhdCI6MTYxNzg0ODQ0NSwiZXhwIjoxNjE3ODU5MjQ1LCJkaXZpc2lvbl9lbnRpZGFkIjoiVW5pZGFkIFBlbmFsIEp1dmVuaWwsIFNvbnNvbmF0ZSIsImplcmFycXVpYSI6IkplZmUgZGUgVW5pZGFkIn0.UBcto44yIj04rlZrIxgroVkl-iDR2w01K0iPNikXo60

[{"archivo":[-119,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,4,56,0,0,9,-40,8,2,0,0,0,20,-31,-127,-102,0,0,0,1,115,82,71,66,0,-82,-50,28,-23,0,0,0,3,115,66,73,84,8,8,8,-37,-31,79,-32,0,0,32,0,73,68,65,84,120,-100,-20,-35,121,92,84,-43,-1,-8,-15,59,32,-85,-56,34,42,2,-122,-110,-69,-103,-118,104,110,105,46,-103,-87,105,106,-87,-71,35,-90,-103,-106,91,31,91,-52,114,105,-79,-12,-101,75,-26,-102,31,37,75,-53,45,119,63,-103,11,-102,-87,104,-124,-32,-118,11,-120,6,110,-128,12,40,-56,50,-52,-4,-2,-72,-33,-49,-3,-35,-17,-99,-123,97,24,24,6,94,-49,63,122,92,-50,-100,123,-18,57,-109,51,115,-33,-9,

Homicidios

/save-homicidios

  • Intentando crear un homicidio me genera un error 401 y con el siguiente json error:
{
  "codigo": 401,
  "mensaje": "Credenciales son necesarias"
}
public class ApiClient{
private static OkHttpClient.Builder getUnsafeOkHttpClient() {
try {
// Create a trust manager that does not validate certificate chains
final TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
}
2020-06-10 21:33:24.039 4687-4709/? E/system_server: Invalid ID 0x00000000.
2020-06-10 21:33:24.075 32212-32212/? E/rg.givesafe.ap: Unknown bits set in runtime_flags: 0x8000
2020-06-10 21:33:24.363 4049-32284/? E/ResolverController: No valid NAT64 prefix (201, <unspecified>/0)
2020-06-10 21:33:24.371 4049-32286/? E/ResolverController: No valid NAT64 prefix (201, <unspecified>/0)
2020-06-10 21:33:24.749 4109-5652/? E/BufferQueueProducer: [com.android.settings/com.android.settings.applications.InstalledAppDetails#0] disconnect: not connected (req=1)
2020-06-10 21:33:25.245 4049-32347/? E/ResolverController: No valid NAT64 prefix (201, <unspecified>/0)
2020-06-10 21:33:25.351 32212-32212/org.givesafe.app E/rg.givesafe.ap: The String#value field is not present on Android versions >= 6.0
2020-06-10 21:33:25.398 32212-32212/org.givesafe.app E/COMMUNITY_ACTIVITY: Error trying to restart beaconHolder service on community screen
2020-06-10 21:33:25.558 32212-32212/org.givesafe.app E/COMMUNITY_ACTIVITY: Error trying to
{
"fecha":"14\/02\/2018 05:14:53",
"instrumento":"1",
"respuestas":[
{
"variable":"G1",
"valor":"1"
},
{
"variable":"G2",
{"fecha":"14\/02\/2018 05:14:53","instrumento":"1","respuestas":[{"variable":"G1","valor":"1"},{"variable":"G2","valor":"1"},{"variable":"G3","valor":"1"},{"variable":"G4","valor":"El Salvador","comentario":"El Salvador"},{"variable":"DEP","valor":"01"},{"variable":"URBANO","valor":"R"},{"variable":"T1","valor":"PC081003","comentario":"PC081003"},{"variable":"T2","valor":"6"},{"variable":"T3","valor":"A"},{"variable":"T4","valor":"1"},{"variable":"SEXO","valor":"F"},{"variable":"EDAD","valor":"35","comentario":"35"},{"variable":"D3","valor":"2"},{"variable":"D4","valor":"1"},{"variable":"P1","valor":"5"},{"variable":"P2","valor":"5"},{"variable":"P3","valor":"5"},{"variable":"P4","valor":"5"},{"variable":"P5","valor":"5"},{"variable":"P6","valor":"5"},{"variable":"P7","valor":"5"},{"variable":"P8","valor":"5"},{"variable":"P9","valor":"5"},{"variable":"P10","valor":"5"},{"variable":"P11","valor":"5"},{"variable":"P12","valor":"5"},{"variable":"P13","valor":"5"},{"variable":"P14","valor":"5"},{"variable":"P15"
<CheckBox
android:id="@+id/checkBox"
android:text="CheckBoxOne"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/MyCheckbox"/>
.
.
.
LocalSharedPreferences localSharedPreferences = new LocalSharedPreferences(this.context);
localSharedPreferences.setFirstName(owner.getFirstName());
localSharedPreferences.setLastName(owner.getLastName());
localSharedPreferences.setEmail(owner.getEmail());
.
.
.
@moizest89
moizest89 / data.js
Created December 27, 2018 13:44
Pokemon basic filte
loadAllPokemon() //When the web page is finish to load, the first function to load is this one
// const allPokemon = pokemon["pokemon"]
function loadAllPokemon() {
const allPokemon = pokemon["pokemon"]
renderPokemonListInvView( allPokemon )
}