Skip to content

Instantly share code, notes, and snippets.

View setiawanjemy88's full-sized avatar
:octocat:
I may be slow to respond.

JEMY SETIAWAN setiawanjemy88

:octocat:
I may be slow to respond.
View GitHub Profile
@setiawanjemy88
setiawanjemy88 / MatrixEvaluator.java
Created August 11, 2021 01:02 — forked from niusounds/MatrixEvaluator.java
Matrix to Matrix implementation
import android.animation.TypeEvaluator;
import android.graphics.Matrix;
public class MatrixEvaluator implements TypeEvaluator<Matrix> {
private Matrix evaluated = new Matrix();
private float[] values = new float[9];
private float[] startValues = new float[9];
private float[] endValues = new float[9];
@Override
@setiawanjemy88
setiawanjemy88 / matrix-collection.twig
Created August 11, 2021 01:03 — forked from danieltott/matrix-collection.twig
Matrix in Matrix Workaround
{% macro outputTiles(tileList) %}
{# use macro to keep it DRY #}
<div class="tiles">
{% for tile in tileList %}
<div class="tile">{{ tile.tileTitle }}</div>
{% endfor %}
</div>
{% endmacro %}
bundle exec ruby bot.rb
bot created
(JSON::ParserError)bies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse': 784: unexpected token at '<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.9.1</center>
</body>
</html>
'
@setiawanjemy88
setiawanjemy88 / matrix-collection.twig
Last active August 13, 2021 00:35
matrix-collections
{% macro outputTiles(tileList) %}
{# use macro to keep it DRY #}
<div class="tiles">
{% for tile in tileList %}
<div class="tile">{{ tile.tileTitle }}</div>
{% endfor %}
</div>
{% endmacro %}
//http://www.glassdoor.com/Interview/Given-a-large-input-string-write-a-function-to-check-if-it-is-a-palindrome-according-to-the-following-restrictions-low-QTN_927605.htm
//Given a large input string, write a function to check if it is a palindrome,
//according to the following restrictions: -lowercase and uppercase characters are considered equal -special characters are ignored
var aCode = "a".charCodeAt(0);
var ACode = "A".charCodeAt(0);
var setLen = 26;
function isChar(char) {
@setiawanjemy88
setiawanjemy88 / telegram-bot.js
Created August 14, 2021 15:27 — forked from Sinequanonh/telegram-bot.js
Nodejs script to send Telegram push notifications
const TelegramBot = require('node-telegram-bot-api');
// replace the value below with the Telegram token you receive from @BotFather
const token = YOUR_TOKEN;
// read the doc from https://github.com/yagop/node-telegram-bot-api to know how to catch the chatId
const chatId = CHAT_ID;
const bot = new TelegramBot(token, { polling: false });
const telegrambot = (message, json) => {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace AdventOfCode_Day10
{
class Program
{
@setiawanjemy88
setiawanjemy88 / bot.js
Created August 14, 2021 15:34 — forked from w3barsi/bot.js
const { prefix: PRE, token: TOKEN } = require('./config.json');
const discord = require('discord.js');
const mineflayer = require('mineflayer');
const client = new discord.Client();
let botList = new Map();
let channel;
# Contributor: judd <jvinet@zeroflux.org>
pkgname=alsa-lib
pkgver=1.1.7
pkgrel=2
pkgdesc="An alternative implementation of Linux sound support"
arch=('x86_64')
url="http://www.alsa-project.org"
depends=('glibc')
optdepends=('python2: for python smixer plugin')