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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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
package com.blogspot.codigogoogle.simplegetpostclient; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v7.app.ActionBarActivity; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.Menu; |
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
@Override | |
protected void onHandleIntent(Intent intent) { | |
ResultReceiver resultReceiver = intent.getParcelableExtra(RESULT_RECEIVER_EXTRA); | |
String text = intent.getStringExtra(STR_EXTRA_TEXT); | |
Map<String, Object> params = new LinkedHashMap<String, Object>(); | |
if (text != null) { | |
params.put("text", text); | |
} |
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 class IntentServiceResultReceiver extends ResultReceiver { | |
public IntentServiceResultReceiver(Handler handler) { | |
super(handler); | |
} | |
@Override | |
protected void onReceiveResult(int resultCode, Bundle resultData) { | |
String result = resultData.getString("result"); | |
try { |
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 String[] listValues = new String[]{"Brasil", "Argentina", "Bolívia", "Chile", "Colômbia", | |
"Equador", "Ilhas Malvinas", "Guiana Francesa", "Guiana", "Paraguai", "Peru", | |
"Suriname", "Uruguai", "Venezuela"}; | |
@Override | |
public void onActivityCreated(Bundle savedInstanceState) { | |
super.onActivityCreated(savedInstanceState); | |
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), | |
android.R.layout.simple_list_item_1, listValues); |
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
Verifying that +netomarin is my blockchain ID. https://onename.com/netomarin |
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
from borg import Borg | |
import json | |
import configparser | |
from watchdog.observers import Observer | |
from watchdog.events import PatternMatchingEventHandler | |
from datetime import datetime | |
from datetime import timedelta | |
import numpy | |
import threading |
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
# Classe do branch que é compativel com o modulo PCF8574 | |
import Adafruit_CharLCD.PCF_CharLCD as LCD | |
# Valores de configuracao | |
address = 0x3f | |
busnum = 1 | |
lines = 4 | |
cols = 20 | |
# E se estiver usando um 2x16 |
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
conv.ask('The code for ' + crypto + ' is ' + code); | |
if (conv.surface.capabilities.has( | |
'actions.capability.SCREEN_OUTPUT')) { | |
conv.ask(new Suggestions('Check ' + code + ' quote')); | |
} |
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
conv.ask(new SimpleResponse({ | |
speech: 'The code for ' + crypto + ' is ' + code + | |
'. You can say "Check ' + code + | |
' quote" to know the market value', | |
text: 'The code for ' + crypto + ' is ' + code, | |
})); | |
conv.ask(new Suggestions('Check ' + code + ' quote')); |
OlderNewer