Skip to content

Instantly share code, notes, and snippets.

View milkersarac's full-sized avatar
⚛️

milkersarac milkersarac

⚛️
View GitHub Profile
@milkersarac
milkersarac / enzyme_render_diffs.md
Created April 11, 2018 06:13 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@milkersarac
milkersarac / scriptAndroid.sh
Last active June 24, 2020 19:14
This script can be used for building multiple react-native apps from a single git repo.
#!/bin/bash
# MUSTAFA ILKER SARAC
# This script can be used for building multiple react-native apps from a single git repo.
# It needs master files for the default configurations.
# master files are generally the copy of the current config files of that git repo.
# If current state of the app changes i.e. adding new 3rd party components so package.json changes;
# then one should be responsible to reflect these changes to the master files to be synced with the current state of the repo.
# This script can be used to alter the current state, so that new apps could be generated with new names etc.
# scriptAndroid.sh
# "chmod +x ./scriptAndroid" to make script executable.
@milkersarac
milkersarac / turkish.txt
Last active March 10, 2016 12:18
All turkish words from Zemberek. Zemberek projesinden tum turkce sozcukler, 1140208 adet.
We couldn’t find that file to show.
@milkersarac
milkersarac / team-workflow.md
Last active August 29, 2015 14:27 — forked from leesmith/team-workflow.md
Git workflow for agile teams

Mar 2nd, 2009

An efficient workflow for developers in Agile teams that handles features and bugs while keeping a clean and sane history.

At Hashrocket we use git both internally and in our Agile mentoring and training. Git gives us the flexibility to design a version control workflow that meets the needs of either a fully Agile team or a team

#!/bin/bash
from bs4 import BeautifulSoup
import requests
import urllib2
import os
import re, urlparse
import time
import pdb
from interruptingcow import timeout
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
function phow_caltech101()
% PHOW_CALTECH101 Image classification in the Caltech-101 dataset
% This program demonstrates how to use VLFeat to construct an image
% classifier on the Caltech-101 data. The classifier uses PHOW
% features (dense SIFT), spatial histograms of visual words, and a
% Chi2 SVM. To speedup computation it uses VLFeat fast dense SIFT,
% kd-trees, and homogeneous kernel map. The program also
% demonstrates VLFeat PEGASOS SVM solver, although for this small
% dataset other solvers such as LIBLINEAR can be more efficient.
%
function mosaic = sift_mosaic(im1, im2)
% SIFT_MOSAIC Demonstrates matching two images using SIFT and RANSAC
%
% SIFT_MOSAIC demonstrates matching two images based on SIFT
% features and RANSAC and computing their mosaic.
%
% SIFT_MOSAIC by itself runs the algorithm on two standard test
% images. Use SIFT_MOSAIC(IM1,IM2) to compute the mosaic of two
% custom images IM1 and IM2.
#!/bin/bash
# https://gist.github.com/robwierzbowski/5430952/
# Create and push to a new github repo from the command line.
# Grabs sensible defaults from the containing folder and `.gitconfig`.
# Refinements welcome.
# Gather constant vars
CURRENTDIR=${PWD##*/}
GITHUBUSER=$(git config github.user)
@milkersarac
milkersarac / install_opencv.sh
Last active December 27, 2015 11:29
opencv installer bash-script. put that script in the directory where you want to install opencv then run it. Credit for this script goes to Eren Golge.
#!/bin/bash
//install opencv to machine
arch=$(uname -m)
if [ "$arch" == "i686" -o "$arch" == "i386" -o "$arch" == "i486" -o "$arch" == "i586" ]; then
flag=1
else
flag=0
fi
echo "Installing OpenCV 2.4.3"
mkdir OpenCV