This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Fungsi perkalian matriks | |
* @f2face - 2013 | |
*/ | |
function perkalian_matriks($matriks_a, $matriks_b) { | |
$hasil = array(); | |
for ($i=0; $i<sizeof($matriks_a); $i++) { | |
for ($j=0; $j<sizeof($matriks_b[0]); $j++) { | |
$temp = 0; | |
for ($k=0; $k<sizeof($matriks_b); $k++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Persiapan : | |
* Download MySQL Connector for .NET di http://dev.mysql.com/downloads/connector/net/ | |
* Add reference file "mysql.data.dll" ke project ente (pilih yang sesuai versi .NET Framework yang ente pake di project). | |
*/ | |
/*----------------------------------------------------------------------------------------- | |
* Jangan lupa: | |
using MySql.Data.MySqlClient; | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------- | |
* [C#] Membuat class versi ane. | |
* by @f2face / Surya Oktafendri ~ 9 Februari 2014 | |
-- | |
* Misal : | |
Di database ente ada tabel "Customer" dengan atribut: no_customer, nama_customer, alamat_customer. | |
----------------------------------------------------------*/ | |
class Customer | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Embed DLL reference into single EXE / Use DLL as embedded resource | |
' Menggabungkan DLL reference ke dalam EXE sebagai embedded resource, tanpa ILMerge ataupun software merger lainnya. | |
' Code by TLS (http://stackoverflow.com/a/9678903) | |
' Persiapan (gambar): | |
' 1. https://drive.google.com/file/d/0B_JLt2gqN3MPWTcwcWtEbXBLRnM/edit?usp=sharing | |
' 2. https://drive.google.com/file/d/0B_JLt2gqN3MPRS1GbGRHaFJLaDA/edit?usp=sharing | |
'========================================================================================== | |
' 1. Buat Module baru, masukkan kode : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TweetDeck Cramming | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Allow 280 characters in a Tweet sent from TweetDeck automatically | |
// @author Erydactyl and Zemnmez | |
// @run-at document-idle | |
// @match https://tweetdeck.twitter.com/* | |
// @grant * | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update && wget https://minergate.com/download/deb-cli && sudo dpkg -i deb-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example: phtml, htm, html, php | |
<FilesMatch "(?i)\.(phtml|htm|html|php)$"> | |
Order Allow,Deny | |
Deny from all | |
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
cd ~/ffmpeg_sources | |
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.f2face.app.example.Components; | |
/* This component class is based on an answer by @tacone on StackOverflow | |
* Link: https://stackoverflow.com/a/8483078 | |
*/ | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.ViewGroup; | |
import android.widget.GridView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# chkconfig: - 99 10 | |
. /etc/rc.d/init.d/functions | |
DAEMON=/usr/bin/supervisord | |
PIDFILE=/var/run/supervisord.pid | |
[ -x "$DAEMON" ] || exit 0 |
OlderNewer