Skip to content

Instantly share code, notes, and snippets.

View AmyrAhmady's full-sized avatar
:shipit:
shipit shipit

iAmir AmyrAhmady

:shipit:
shipit shipit
View GitHub Profile
@n4n0GH
n4n0GH / autismo.js
Last active October 17, 2019 20:55 — forked from fl4ke/autismo.js
Memescript for Cordless
function onMessageSend(message){
return message.replace(/%%([^%]*)%%/g, function(autismo){
autismo = autismo.split('')
for(var i=0; i<autismo.length; i++){
autismo[i] = i%2?autismo[i].toLowerCase():autismo[i].toUpperCase()
}
autismo.unshift(':npc: ')
return autismo.join('')
})
.replace(/°°([^°]*)°°/g, function(autismo){
@lukebrandonfarrell
lukebrandonfarrell / ActionReducer.js
Last active March 4, 2023 12:57
A hook to listen to Redux actions in your component.
const initialState = {
type: null,
payload: null,
meta: null,
error: false
};
export default (state = initialState, action) => {
return {
...state,

Server Information

Canonical Invite Link: https://discord.gg/samp Spread the word!

- Rules -

Staff have the right to kick/ban if they believe such action is justified. In general, warnings will be issued and discussed with users first.

  • Respect - Just don't be a dick. Banter is fine but don't be hateful or harrass users.
  • Topics - Conversations diverge and that's fine but if someone says move channel, move. Memes in #memes only.
@informationsea
informationsea / crossthread.c
Created December 29, 2015 04:14
pthread compatible library for windows
/*
* light weight pthread compatible library for Windows
* (C) 2009 Okamura Yasunobu
*/
#include "crossthread.h"
#include <stdio.h>
#ifdef _WIN32
package main
// doesn't work, unfortunately :|
// #include <windows.h>
// #include <psapi.h>
import "C"
import "unsafe"
import "fmt"
import "syscall"