Skip to content

Instantly share code, notes, and snippets.

View panchicore's full-sized avatar
👽

Luis Pallares panchicore

👽
View GitHub Profile
@panchicore
panchicore / project.ts
Last active February 9, 2023 20:39
strapi custom service to hide ids with another type of sequence
// src/api/project/services/project.ts
export default factories.createCoreService('api::project.project', ({strapi}) => ({
async find(params) {
let {results, pagination} = await super.find(params);
results = results.map(result => ({
...result,
id: result.cuid
}))
return {results, pagination}
create index if not exists idx_text_fts
on public.metadata_texts using gin (to_tsvector('english'::regconfig, text));
@panchicore
panchicore / carbone.forms.csv
Last active October 20, 2022 15:37
useful forks where you can see on the commit logs the **image support** messages.
Repo URL Stars Forks Ahead Behind Last Push
Enfexia/carbone https://github.com/Enfexia/carbone 2 1 14 10 2022-05-01
keeps/carbone https://github.com/keeps/carbone 1 0 10 10 2022-09-21
mahdi-akbary/carbone https://github.com/mahdi-akbary/carbone 1 0 3 258 2019-04-22
asagiyev/carbone https://github.com/asagiyev/carbone 0 0 1 240 2020-05-12
tggreene/carbone https://github.com/tggreene/carbone 0 0 6 3 2021-11-29
GSattybay/carbone https://github.com/GSattybay/carbone 0 2 3 47 2021-02-04
visualalpha/carbone https://github.com/visualalpha/carbone 0 0 2 3 2022-01-28
AndreiD049/carbone https://github.com/AndreiD049/carbone 0 0 3 81 2021-01-17
flight2k/carbone https://github.com/flight2k/carbone 0 0 2 3 2021-12-04
{
"eLngEnglish":"/images/nationality/1.jpg",
"eLngEngland":"/images/nationality/1.jpg",
"eLngAmerican":"/images/nationality/2.jpg",
"eLngUsa":"/images/nationality/2.jpg",
"eLngJapanese":"/images/nationality/3.jpg",
"eLngGerman":"/images/nationality/4.jpg",
"eLngGermany":"/images/nationality/4.jpg",
"eLngScottish":"/images/nationality/5.jpg",
"eLngFrench":"/images/nationality/6.jpg",
@panchicore
panchicore / 14-sept.csv
Last active September 14, 2020 22:31
dirt rally monthly challenge #1
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
"rank","name","isVIP","isFounder","isPlayer","isDnfEntry","playerDiff","vehicleName","stageTime","stageDiff","totalTime","totalDiff","nationality"
"1","catty7073","False","False","False","False","0","Ford Fiesta R2","06:05.135","--","02:51:26.167","--","eLngChinese"
"2","tetu235","False","False","False","False","0","Ford Fiesta R2","06:10.769","+00:05.634","02:52:07.471","+00:41.304","eLngJapanese"
"3","Tb654re","False","False","False","False","0","Ford Fiesta R2","06:09.992","+00:04.857","02:52:49.382","+01:23.215","eLngBritish"
"4","Suhoska78","False","False","False","False","0","Ford Fiesta R2","06:12.556","+00:07.421","02:55:19.715","+03:53.548","eLngFinnish"
"5","abrod520","False","False","False","False","0","Ford Fiesta R2","06:08.793","+00:03.658","02:55:56.866","+04:30.699","eLngAmerican"
"6","nioblue","False","False","False","False","0","Ford Fiesta R2","06:13.212","+00:08.077","02:56:30.854","+05:04.687","eLngAmerican"
"7","rms","False","False","False","False","0","Ford Fiesta R2","06:14.805","+00:0
The Smokey Mirror
Three thousand years ago, there was a human just like you and me who lived near a city surrounded by mountains. The human was studying to become a medicine man, to learn the knowledge of his ancestors, but he didn't completely agree with everything he was learning. In his heart, he felt there must be something more.
One day as he slept in a cave, he dreamed that he saw his own body sleeping. He came out of the cave on the night of the new moon. The sky was clear, and he could see millions of stars. Then something happened inside of him that transformed his life forever. He looked at his hands, he felt his body, and he heard his own voice say, "I am made of light; I am made of stars."
He looked at the stars again, and then he realized that it's not the stars that create light, but rather light that creates the stars. "Everything is made of light," he said, "and the space in-between isn't empty." And he knew that everything that exists is one living being, and that light is the messenger of
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@panchicore
panchicore / MainActivity.kt
Created January 16, 2020 16:27
Device shake detection implemented in Kotlin, powered by Seismic.
import android.content.Context
import android.hardware.SensorManager
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.squareup.seismic.ShakeDetector
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity(), ShakeDetector.Listener {
override fun onCreate(savedInstanceState: Bundle?) {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.