Skip to content

Instantly share code, notes, and snippets.

View pkriens's full-sized avatar

Peter Kriens pkriens

View GitHub Profile
@pkriens
pkriens / ama.md
Created April 11, 2023 12:21
Chat gpt 4 discussion about AMA statement

ME: summarise: Developmental scientists conduct research designed to promote fairness and justice for individuals’ developmental outcomes and equity in access to experiences and resources for children and families regardless of group characteristics—including, but not limited to: age; socioeconomic status; race, ethnicity and nationality; religion; linguistic background; sex and gender identity and expression; sexual orientation; mental health; physical, cognitive, and learning abilities; mental health; and other aspects of human diversity.

Developmental scientists aim to promote fairness, justice, and equity in developmental outcomes and resource access for children and families across diverse backgrounds, considering factors such as age, socioeconomic status, race, ethnicity, religion, language, gender, sexual orientation, mental health, and abilities.

ME: this is from the AMA. Can a developmental scientist study memory development in children and comply?

Yes, a developmental scientist can study me

@pkriens
pkriens / gist:1cb8296d0e84235d7bde177067ca6678
Created April 11, 2023 12:20
Chat gpt 4 discussion about AMA statement
ME: summarise: Developmental scientists conduct research designed to promote fairness and justice for individuals’ developmental outcomes and equity in access to experiences and resources for children and families regardless of group characteristics—including, but not limited to: age; socioeconomic status; race, ethnicity and nationality; religion; linguistic background; sex and gender identity and expression; sexual orientation; mental health; physical, cognitive, and learning abilities; mental health; and other aspects of human diversity.
> Developmental scientists aim to promote fairness, justice, and equity in developmental outcomes and resource access for children and families across diverse backgrounds, considering factors such as age, socioeconomic status, race, ethnicity, religion, language, gender, sexual orientation, mental health, and abilities.
ME: this is from the AMA. Can a developmental scientist study memory development in children and comply?
> Yes, a developmental scientist can study me
@pkriens
pkriens / gist:8335ce1382d6886907eecf73639db918
Created March 7, 2020 10:22
Some code related to codesets and soundex, not finished but the table was a lot of work
package aQute.libg.phonetics;
import java.io.IOException;
import java.io.StringReader;
public class Soundex {
final static String SOUNDEX_CODE = "________________________________777777777701230120022455012623010202_";
@pkriens
pkriens / def.java
Created August 16, 2019 14:01
blabla
adasdasda
#
# Java 1.7
#
# Add this file in cnf/ext or include in a bndrun (either -include or paste)
#
-runsystempackages.bugfix = \
javax.accessibility;version=0,\
javax.activation;version=0,\
javax.activity;version=0,\
# Java 1.8
#
# Add this file in cnf/ext or include in a bndrun (either -include or paste)
#
-runsystempackages.bugfix = \
javax.annotation.processing;version=0,\
javax.crypto;version=0,\
javax.crypto.interfaces;version=0,\
javax.crypto.spec;version=0,\
javax.lang.model;version=0,\
@Override
public String getWeather(String where) throws Exception {
String query = String.format( "select item.condition from weather.forecast where woeid in (select woeid from geo.places(1) where text='%s')", where);
URL url = new URL("https://query.yahooapis.com/v1/public/yql?format=json&q="+URLEncoder.encode(query, "UTF-8"));
Map<String,Object> map = dtos.decoder(new TypeReference<Map<String,Object>>(){}).get(url.openStream());
return (String) dtos.get(map,"query.results.channel.item.condition.text").value;
}
public interface Metric {
String name();
String display();
}
--------------------
@Component
public class MetricsProviderManager {
Timer timer;
@pkriens
pkriens / fiddle.response.json
Created November 15, 2012 13:22
Example json file
{
"formats":[
{
"name":"ipad",
"label":"iPad"
},
{
"name":"android",
"label":"Android"
}
@pkriens
pkriens / fiddle.response.html
Created November 14, 2012 10:48
Fiddle response
<div id="theme-view" class="{{clazz}}">
<h1>{{clazz}}</h1>
<p>The quick brown dog jumps <i>over</i> the lazy dog</p>
</div>