Skip to content

Instantly share code, notes, and snippets.

View shintack's full-sized avatar

shintack-eror shintack

  • Sukabumi
  • 03:57 (UTC +07:00)
View GitHub Profile
SELECT name FROM employees WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);
@shintack
shintack / students.sql
Created May 12, 2019 04:00
Students SQL
SELECT COUNT(*) FROM students WHERE firstName = "John";
<?php
class Pipeline
{
public static function make_pipeline(...$funcs)
{
return function($arg) use ($funcs)
{
foreach ($funcs as $func)
{
$arg = $func($arg);
@shintack
shintack / palindrome.php
Last active May 12, 2019 03:41
Palindrome
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$word = strtolower($word);
return $word===strrev($word);
}
}
rbenv install 2.4.0
rbenv global 2.4.0
ruby -v
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
@shintack
shintack / Install rbenv
Last active November 19, 2018 12:49
Install rbenv
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
@shintack
shintack / dependency install ruby via rbenv
Created November 19, 2018 12:10
Dependency yang dibutuhkan untuk install ruby via rbenv
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs