Skip to content

Instantly share code, notes, and snippets.

View r17x's full-sized avatar
🤘
REconciling...

RiN r17x

🤘
REconciling...
View GitHub Profile

Requirements :

  • ffmpeg
  • imagemagick

Tested On Linux

$ ffmpeg -i input.mp4 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop -0 - output.gif 
@r17x
r17x / Router.js
Last active August 28, 2018 04:47
Article:React-Roles
import React, {Fragment} from 'react';
import {
BrowserRouter as Router,
Route,
Link
} from "react-router-dom";
const Navigation = () => (
<ul style={{display: "flex", justifyContent: "space-around" }}>
<li><Link to="/"> Home </Link></li>
@r17x
r17x / InjectScript.js
Last active December 18, 2018 07:45
InjectScript
/**
* Simple Injection HTML Script resource
* @author rin@valutac.com
* Example use:
* rel its experimental | maybe not work on some browser
* const scriptList = [
* {
* src: 'url',
* async: boolean,
* defer: boolean,
#######
# TUGAS MAHASISWA GUE
# NAMA : RADYSURYAGUS
# NIM : MINTA AMA DOSEN YEH
######
def initMahasiswa():
return {
'nopokok': 0,
'nama': '',

wsgi.py

import app                                                                                                                                                                                                                 
                                                                                                                                                                                                                           
if __name__ == "__main__":                                                                                                                                                                                                 
        app.run()        
#!/bin/bash

src="${1-./img/splash.png}"

ffmpeg -i ${src} -s 640x1136 ../ios/CardC/splash/Default-568h@2x~iphone.png -y
ffmpeg -i ${src} -s 750x1334 ../ios/CardC/splash/Default-667h.png -y
ffmpeg -i ${src} -s 1242x2208 ../ios/CardC/splash/Default-736h.png -y
ffmpeg -i ${src} -s 640x960 ../ios/CardC/splash/Default@2x~iphone.png -y
ffmpeg -i ${src} -s 320x480 ../ios/CardC/splash/Default~iphone.png -y
@r17x
r17x / propTypeUsage.jsx
Created July 5, 2018 14:19 — forked from juwencheng/propTypeUsage.jsx
react native prop type validation usage
// import the library
import PropTypes from 'prop-types';
// define a component
class Greeting extends React.Component {
render() {
return (
<h1>Hello, {this.props.name}</h1>
);
}
@r17x
r17x / rn_config.package.md
Last active July 2, 2018 13:31
My React Native Package
# List 
- react-native-config --save # configuration management 
- rn-fetch-blog --save # for fetch in react native 
# https://medium.com/differential/managing-configuration-in-react-native-cd2dfb5e6f7b
# touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
@r17x
r17x / Instructions.md
Created June 28, 2018 11:42 — forked from glocore/Instructions.md
Setup React Native on Ubuntu 16.04/16.10

1. Install Node.js

  • Follow the steps given here to install Node.js and NPM.
  • Verify whether NPM is installed by typing npm -v in a terminal window.

2. Install React Native CLI

  • npm install -g react-native-cli

3. Setup Android Development Environment

  • Download and install Android Studio as explained here.
  • Run Android Studio and open the SDK Manager. Under the SDK Platforms tab, check Show Package Details, expand Android 6.0 (Marshmallow) and check the following:
@r17x
r17x / fetch-overwrite.md
Last active June 29, 2018 00:21
Overwrite & Replace Original Window.fetch for something logic & get information in every request & response

This code for get all information on event in request/response (XHR/Fetch) you can manipulation everything in Request/Response like headers, data, & etc.

i don't want to handle 10++ request for get something in request/response, so overwrite window.fetch (globally) to do it.

const OriginalFetch = window.fetch

window.fetch = (url, options) =&gt; {