Skip to content

Instantly share code, notes, and snippets.

@gtsop
gtsop / chat-gpt-guess-fruit.md
Created December 29, 2023 19:38
ChatGPT can't play guessing game

User

Let's play a game, you think of a fruit and I try to figure it out. Don't give me any hints, just answer my questions

ChatGPT

Sure, let's play! Go ahead and ask your questions, and I'll do my best to answer them without giving any hints. What's your first question?

User

Is it big?

ChatGPT

@gtsop
gtsop / chat-gpt-count.md
Last active December 29, 2023 18:10
making fun of chatgpt because it can't count
While being amazed at how ChatGPT has altered my process of seeking new knowledge and getting out of dead ends, it is always a good idea to remind myself how not trully inteligent this Artifical Intelligence is. Not so much to give myself a sense of security stemming from intelectual superiority over the machine, but rather to double check where we are in this journey towards greater and greater Artifical Intelligence. For this, I present to you: ChatGPT can't count!

User

Give me a list of 10 colors

ChatGPT

Certainly! Here's a list of ten colors:

  1. Red
  2. Blue
@gtsop
gtsop / printObject.js
Created October 2, 2019 10:54
react-print-object
import React from "react";
export default class PrintObject extends React.PureComponent {
render() {
return (
<pre style={{textAlign: 'left'}}>
{JSON.stringify(this.props.value, null, 2)}
</pre>
);
}
@gtsop
gtsop / controllers.application.js
Last active May 15, 2019 15:38
bracket notation
import Ember from 'ember';
import EmberObject from '@ember/object';
import {computed} from '@ember/object';
import { later } from '@ember/runloop';
const mock = EmberObject.create({
prop1: '1',
prop2: '2'
});
var dashboard = $('.dashboard');
var stop = $('#stopCover');
setInterval(function () {
if (stop.css('display') == 'block')
dashboard.click()
}, 1)
for(var array="0,1,2,3,4,5,6,7,8,15,16,17,18,19,20,21,22,23,24,25,32,33,34,35,36,37,38,39,40,41,42,43,44,45,56,57,58,59,60,61,62,73,74,75,76,77,78,79,80,81,82,97,98,99,114,115,116,117,118,119,137,155,156,157,195,313,351,352,353,389,390,391,392,393,427,428,429,430,431,432,433,465,466,467,468,469,470,471,472,473,474,502,503,504,505,506,507,508,509,510,511,512,513,514,515,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,
@gtsop
gtsop / fenia
Created November 5, 2015 16:00
var array = "0,1,2,3,4,5,6,7,8,15,16,17,18,19,20,21,22,23,24,25,32,33,34,35,36,37,38,39,40,41,42,43,44,45,56,57,58,59,60,61,62,73,74,75,76,77,78,79,80,81,82,97,98,99,114,115,116,117,118,119,137,155,156,157,195,313,351,352,353,389,390,391,392,393,427,428,429,430,431,432,433,465,466,467,468,469,470,471,472,473,474,502,503,504,505,506,507,508,509,510,511,512,513,514,515,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,75
var event = new MouseEvent('click', {
'view': window,
'bubbles': true,
'cancelable': true
});
var element = document.getElementById('u_0_12');
setInterval(function () {
element.dispatchEvent(event);
}, 10);
<h1>
About page
</h1>
<h1>
Hello World from the index template
</h1>