This file contains hidden or 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
@POST("/announcements") | |
Announcement insertAnnouncement( | |
@Body Announcement announcement, | |
@Query("auth") String authToken | |
); | |
public class Announcement implements Serializable { | |
public String module_id; | |
public String user_id; |
This file contains hidden or 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
{ | |
"list": [ | |
{ | |
"author": "George R. R. Martin", | |
"cover": "http://i.imgur.com/8VmUcJX.jpg", | |
"id": "book2", | |
"title": "A Storm of Swords" | |
}, | |
{ | |
"author": "Stephen G. Kochan", |
This file contains hidden or 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
///////////////////////////////////////////////////////////////////////// | |
//// MMCSD.c //// | |
//// //// | |
//// This is a low-level driver for MMC and SD cards. //// | |
//// //// | |
//// --User Functions-- //// | |
//// //// | |
//// mmcsd_init(): Initializes the media. //// | |
//// //// | |
//// mmcsd_read_byte(a, p) //// |
This file contains hidden or 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
///////////////////////////////////////////////////////////////////////// | |
//// FAT_PIC.C //// | |
//// //// | |
//// Driver/Library for a FAT filesystem with a PIC //// | |
//// //// | |
//// This Library was designed to resemble standard ANSI C I/O as //// | |
//// much as possible. There are, however, some caveats to this. //// | |
//// Please read the comments to make sure the inputs and outputs //// | |
//// to each function are understood before using anything in //// | |
//// this library. //// |
This file contains hidden or 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
#include <18f2420.h> | |
#device PASS_STRINGS = IN_RAM | |
#include <18f2420_registers.h> | |
#fuses INTRC_IO, NOBROWNOUT, NOPROTECT, NOIESO, NOWDT, NOLVP | |
#use delay(clock=8000000) | |
#use rs232(baud=7200, xmit=PIN_C6, rcv=PIN_C7, UART1, errors) |
This file contains hidden or 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
#!/bin/bash | |
# Runs gradle task installGoogleDebug and starts MainActivity on each available running device and emulator. | |
./gradlew installGoogleDebug && | |
adb devices | while read line | |
do | |
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ] | |
then | |
device=`echo $line | awk '{print $1}'` | |
echo "Starting Application on device: $device $@ ..." | |
adb -s $device shell am start -n io.mazur.project/io.mazur.project.ui.MainActivity |
This file contains hidden or 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.IllegalStateException: onMoveItem() - may be a bug or has duplicate IDs --- mDraggingItemInitialPosition = 1, mDraggingItemCurrentPosition = 0, origFromPosition = 0, fromPosition = 1, toPosition = 0 | |
at com.h6ah4i.android.widget.advrecyclerview.draggable.DraggableItemWrapperAdapter.moveItem(DraggableItemWrapperAdapter.java:294) | |
at com.h6ah4i.android.widget.advrecyclerview.draggable.RecyclerViewDragDropManager.swapItems(RecyclerViewDragDropManager.java:684) | |
at com.h6ah4i.android.widget.advrecyclerview.draggable.RecyclerViewDragDropManager.checkItemSwapping(RecyclerViewDragDropManager.java:534) | |
at com.h6ah4i.android.widget.advrecyclerview.draggable.RecyclerViewDragDropManager.handleScrollOnDragging(RecyclerViewDragDropManager.java:595) | |
at com.h6ah4i.android.widget.advrecyclerview.draggable.RecyclerViewDragDropManager$ScrollOnDraggingProcessRunnable.run(RecyclerViewDragDropManager.java:827) | |
at android.os.Handler.handleCallback(Handler.java:587) | |
at android.os.Handler.dispatchMessage(Handler.java: |
This file contains hidden or 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
#include <iostream> | |
#include <SDL.h> | |
using namespace std; | |
int main() { | |
if(SDL_Init(SDL_INIT_VIDEO) != 0) { | |
std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl; | |
return 1; |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.0) | |
include(FindPkgConfig) | |
project(SDL01) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(SOURCE_FILES main.cpp) | |
add_executable(SDL01 ${SOURCE_FILES}) |
OlderNewer