Skip to content

Instantly share code, notes, and snippets.

View ahmadpriatama's full-sized avatar

Ahmad Priatama ahmadpriatama

View GitHub Profile
import urllib2, json, re, requests, sys, urllib, subprocess
ab = re.compile("_url.*\"(.*)\"")
prefix = "/home/ahmad/Downloads/WHMF/"
for i in range(7,55):
for j in range(1,5):
url = "http://video66.org/embed.php?w=790&h=480&vid=vids3/what_happens_to_my_family_-_" + str(i) + "_clip" +str(j)+ ".mp4"
req = urllib2.Request(url, headers={ 'User-Agent': 'Mozilla/5.0' })
kompleks?
estate
regency
perumahan
perum\.?
residences?
apartement?
apartment?
apt\.
apt
@ahmadpriatama
ahmadpriatama / file.js
Created May 18, 2017 03:46
cholesterol form
import React, { Component, PropTypes } from 'react';
import {
View,
ScrollView,
Image,
} from 'react-native';
import { styles } from './styles';
import { UIDropdown } from '../../../ui-dropdown';
import { UIInputText } from '../../../ui-input-text';
import { config } from '../config';
import validator from 'is-my-json-valid';
import cloneDeep from 'lodash/cloneDeep';
const addAdditionalProperties = (schema) => {
if (schema.type === 'object') {
return Object.assign({}, schema, {
additionalProperties: false,
properties: Object.entries(schema.properties).reduce((acc, [key, value]) => {
if (value.type === 'object' || value.type === 'array') {
#!/bin/bash -e
. ../../bootstrap
PORT=$(basename "$(pwd)"|awk -F- '{print $2}')
BACKEND_PORT=$(basename "$(pwd)"|awk -F- '{print $3}')
TEMP_BASE_DIR=/var/tmp/${USER}-varnish-${PORT}
VARNISH_NAME=$TEMP_BASE_DIR
if [ ! -d "$TEMP_BASE_DIR" ]; then
$$('button.js-details-target').forEach(function(element){element.click()})