Skip to content

Instantly share code, notes, and snippets.

View ryukinix's full-sized avatar
☢️
IN RESEARCH

Manoel V. Machado ryukinix

☢️
IN RESEARCH
View GitHub Profile
var shitPosting;
function clearShitFromAPDA() {
Array.prototype.slice.call(document.getElementsByClassName('userContent'), 0)
.filter(x => x.innerText.match(/^\[off\]/i))
.map(x => x.parentNode.parentNode)
.forEach(x => x.parentNode.removeChild(x));
shitPosting = setTimeout(clearShitFromAPDA, 1000);
}
@onlurking
onlurking / fizzbuzz.md
Last active September 6, 2016 01:01
Python FizzBuzz Oneliners
for x in ("FizzBuzz" if num % 15 == 0 else "Fizz" if num % 3 == 0 else "Buzz" if num % 5 == 0 else num for num in range(1,101)): print(x)
for x in ["fizzbuzz" if not x % 15 else "buzz" if not x % 5 else "fizz" if not x % 3 else str(x) for x in range(100)]: print(x)
@Irio
Irio / email.md
Last active October 5, 2016 05:12
[Serenata de Amor] Email de caso disponível

Olá!

Você foi escolhido para participar das primeiras investigações da Operação Serenata de Amor. Se você ainda não se deu conta, você já está fazendo sua parte na Serenata ao Brasil, trabalhando na transparência nas contas públicas. Com a sua ajuda, chegaremos no estágio onde o trabalho manual será o mínimo possível, à cargo do próprio Poder Judiciário.

Mas antes de começarmos, aqui vão algumas dicas que podem facilitar o seu trabalho:

O caso que você vai investigar foi denunciado pelo Robô. Porém, como esse sistema ainda está aprendendo, não temos certeza se o que foi detectado realmente é ilegal. Por isso precisamos muito da sua contribuição.

Não queremos influenciar o seu trabalho. O que você está recebendo é um conjunto de notas que pode ou não ter irregularidades. Nos ajude a entender esses detalhes para identificar se o caso pode ou não ser denunciado ao Ministério Público.

(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
(spacemacs/set-leader-keys-for-major-mode 'oz-mode
"sb" 'oz-feed-buffer
"sl" 'oz-feed-line
@rik0
rik0 / life.lisp
Created February 24, 2011 11:19
Game of Life in Lisp
(proclaim '(optimize (speed 3) (space 0) (debug 0)))
(defparameter *width* 80)
(defparameter *height* 23)
(defparameter *length* (* *width* *height*))
(defun neighbours (pos)
(mapcar (lambda (x) (mod x *length*))
(delete pos
(mapcan (lambda (pos)
@lubien
lubien / show-me.js
Last active March 14, 2017 17:26 — forked from ronaiza-cardoso/show-me.js
Show Me the Evens - Show me the Odds
/**
* Show Me the Evens - Show me the Odds
* Diana is learning to count and she just learned the difference between odds and even numbers.
* She wants to have some fun, so she picks a random number.
* If that number is even, she decides to count all the even numbers up to it starting from 0 up to (but not including) the input.
* If not, she decides to count all the odd numbers up to that number starting from 1 (but not including) the input.
**/
const
range = x => y =>
@h4cc
h4cc / Makefile
Last active July 4, 2017 23:35
Ubuntu 14.04 LTS Trusty Tahr - Basic packages i usually install
#
# Ubuntu 14.04 LTS (Trusty Tahr)
#
# Basic packages i usually install
#
# Author: Julius Beckmann <github@h4cc.de>
#
# For 16.04 Xenial Xerus: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b
#
@ctford
ctford / song.clj
Created May 27, 2017 23:47
Whilst you were
(ns whilst.song
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 dur 1 volume 1.0]
@cstrelioff
cstrelioff / README.md
Last active August 13, 2018 17:09
textmine + lda in python

process corpus for lda

In a blog post I wrote about the python package lda, see here, I used the pre-processed data (included with the lda package) for the example. I have since received many questions regarding the document-term matrix, the titles, and the vocabulary-- where do they come from? This gist will use the textmining package to (hopefully) help answer these types of questions.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.