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
/*Tutoriel sur le capteur de température et d'humidité DHT22. Le capteur est disponible sur notre site internet www.ihm3d.com */ | |
#include "DHT.h"//bibliothéque | |
#define DHTPIN 2 // connexion de la pin digital du capteur sur la broche n°2 | |
#define DHTTYPE DHT22 // on appelle le capteur dht22 dans la bibliothèque | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
//#define DHTTYPE DHT11 // Pour fonctionner avec le capteur DHT 11 |
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
package com.skrumble.ally.fragments.chat; | |
import android.os.Handler; | |
import com.skrumble.ally.helpers.DataHelper; | |
import com.skrumble.ally.libraries.state_machine.FSMEvent; | |
import com.skrumble.ally.libraries.state_machine.Guard; | |
import com.skrumble.ally.libraries.state_machine.OnStateEntryListener; | |
import com.skrumble.ally.libraries.state_machine.StateImplEvent; | |
import com.skrumble.ally.models.chat.Chat; |
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
/** | |
* Convert Spreadsheet data into strings.xml (android) and Localized.string (ios) | |
* requierment: | |
* 3 sheets should be create (wordings, android, ios) | |
* wording sheet should have 3 column (comment_flag, key, value) | |
**/ | |
function convertSpreadSheetToMobileWordingsFile() { | |
var spreadSheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = spreadSheet.getSheets()[0]; |
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
javascript: (function() { | |
var s='%s'; | |
url='<URL_USING_%s_MULTIPLE_TIME>'; | |
// e.g. 'https://www.google.com/search?hl=en&q=%s&tbo=1&tbs=qdr:%s' | |
query=''; | |
urlchunks=url.split('%s'); | |
schunks=s.split(';'); | |
for (i=0; i<schunks.length; i++) { | |
query+=urlchunks[i]+schunks[i]; | |
} |
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
public static PaintDrawable createTopBottomLinearGradientPaintDrawable(TwoColorGradient twoColorGradient, final float center) { | |
final int[] colors = | |
new int[]{twoColorGradient.getGradientStartColor(), twoColorGradient.getGradientEndColor()}; | |
ShaderFactory sf = new ShaderFactory() { | |
@Override | |
public Shader resize(int width, int height) { | |
float[] positions = new float[]{0.0f, center}; | |
return new LinearGradient(0, 0, 0, width, colors, positions, TileMode.CLAMP); | |
} | |
}; |