Skip to content

Instantly share code, notes, and snippets.

View naupaw's full-sized avatar
🐢
Lame

Muhammad Naufal naupaw

🐢
Lame
View GitHub Profile
@naupaw
naupaw / createPopup.js
Created December 17, 2019 05:00
create window popup
export default (url, width, height) => {
const h = width || 600
const w = height || 800
const y = window.top.outerHeight / 2 + window.top.screenY - h / 2
const x = window.top.outerWidth / 2 + window.top.screenX - w / 2
window.open(
url,
'_blank',
'toolbar=no,scrollbars=yes,resizable=yes,top=' +
y +
@naupaw
naupaw / masquerade.md
Created November 23, 2019 12:17
masquerade.md

#Masquerade

bukan nama show jepang


 [qemu1]---------|
 [qemu2]---------|---[vmbr0]---[eth0]---> internet
@naupaw
naupaw / kotak.c
Last active August 29, 2015 14:08
Kumpulan Kode kode yang buat kamu riang gembira
/**
* Kotak Bintang 5
*/
#include <stdio.h>
int main()
{
int jumlah = 5;
@naupaw
naupaw / gulpfile.js
Created October 29, 2014 01:07
gulp task
var gulp = require('gulp')
, watch = require('gulp-watch')
, sass = require('gulp-sass')
, util = require('gulp-util')
, autoprefixer = require('gulp-autoprefixer')
;
gulp.task('env', function(done) {
var config = {
var http = require('http'),
port = 3400;
http.createServer(function(req, res)
{
var body = "<pre>Haruskah belajar Node.js?</pre><p><h3>...Yo Kudu! :D</h3></p>";
res.writeHead(200, {
'Content-Length':Buffer.byteLength(body),
'Content-Type':'text/html',
'Pesan-Header':'Pengenalan Node.js'
@naupaw
naupaw / caripacar.rb
Last active December 17, 2015 23:49
Cari pacal.rb
class Pacar
#buat dulu pacar nya
def initialize
@pacar = ['Dian','Putri','Yasmin','Rena'] #<~ nama calon pacarnya
@tipe = ['lucu','cantik','imut','ngegemesin'] #<~ tipe nya
@gaada = "! eh ga jadi ternyata gapunya :(" #<~ kalo gapunya...
end
# Aku pengen cari pacar...
def cari_pacar(target = nil)
@naupaw
naupaw / simsimi.php
Created November 16, 2012 02:05
Script Simsimi codeigniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Simsimi extends CI_Controller {
public function index()
{
header("Content-type: text/javascript");
$teks = $this->input->get('txt');
$teks = strtolower($teks);
@naupaw
naupaw / index.html
Created July 27, 2012 21:33
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Code Martabak &middot; CodePen</title>
<!--
Copyright (c) 2012 M Naufal, http://codepen.io/pedox
Permission is hereby granted, free of charge, to any person obtaining
@naupaw
naupaw / index.html
Created July 27, 2012 21:33
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Code Martabak &middot; CodePen</title>
<!--
Copyright (c) 2012 M Naufal, http://codepen.io/pedox
Permission is hereby granted, free of charge, to any person obtaining