Skip to content

Instantly share code, notes, and snippets.

View ceremcem's full-sized avatar

Cerem Cem ASLAN ceremcem

View GitHub Profile
@ceremcem
ceremcem / MMakefile
Last active March 19, 2016 10:50
Mixed makefile for building makefiles with multiple languages
# default interpreter is BASH
my-target:
echo "hello"
X=1
echo "this is X: $X"
# One target may use Python
my-other-target.py:
i = 5
print "hello there %d" % i
@ceremcem
ceremcem / Makefile
Created March 19, 2016 00:36
use bash scripts in make files
define my_test =
cd /tmp
pwd
X="hello $(pwd)"
echo "here is $X"
endef
test: ; @$(value my_test)
@ceremcem
ceremcem / Makefile
Last active October 23, 2017 21:06
oneshell testing
.ONESHELL:
SHELL = /bin/bash
.SHELLFLAGS = -e
test:
cd /tmp
X=$(pwd)
echo "here is $$X"
#!/bin/bash
# HOWTO:
# Create csr, buy certificate, get .crt from somewhere, save it as server.crt
# run this script
cat server.crt \
COMODORSADomainValidationSecureServerCA.crt \
COMODORSAAddTrustCA.crt \
AddTrustExternalCARoot.crt > server.chained.crt
#!/bin/bash
#bash ./library-repos-install.sh --install-or-update
cd ~/kicad_sources/kicad-lib.bzr
bzr update
echo "Copying modules, library and template to /usr/local/share/kicad/"
sudo cp ~/kicad_sources/kicad-lib.bzr/{modules,library,template} /usr/local/share/kicad -a
sudo chown root:staff /usr/local/share/kicad/*
sudo chmod 755 /usr/local/share/kicad/*
#!/usr/bin/env python
__author__ = 'ceremcem'
import cv2
import numpy as np
def test_cv():
c = cv2.VideoCapture('1.jpg')
moved to: https://github.com/ceremcem/kicad-install
<!DOCTYPE html><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en" class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="aktos elektronik: yazılım - donanım - otomasyon - telemetri - IoT. Geniş çaplı otomasyon, telemetri ve IoT projelerinde kullanılmak üzere yerli üretim yazılım ve donanım üretir, doğrudan uygulama yapar.">
<link rel="icon" type="image/png" href="img/aktos-icon.png">
This file has been truncated, but you can view the full file.
Tue, 13 Oct 2015 22:50:14 GMT brunch:watch Loaded plugins: css-brunch, jade-static-brunch, javascript-brunch, less-brunch, livescript-brunch
Tue, 13 Oct 2015 22:50:14 GMT brunch:file-list Reading 'node_modules/jade-static-brunch/node_modules/jade/runtime.js'
Tue, 13 Oct 2015 22:50:14 GMT brunch:watch File 'app' received event 'addDir'
Tue, 13 Oct 2015 22:50:15 GMT brunch:watch File 'test' received event 'addDir'
Tue, 13 Oct 2015 22:50:15 GMT brunch:watch File 'vendor' received event 'addDir'
Tue, 13 Oct 2015 22:50:15 GMT brunch:watch File 'package.json' received event 'add'
Tue, 13 Oct 2015 22:50:15 GMT brunch:watch File 'config.coffee' received event 'add'
Tue, 13 Oct 2015 22:50:15 GMT brunch:source-file Initializing fs_utils.SourceFile: {"path":"node_modules/jade-static-brunch/node_modules/jade/runtime.js","isntModule":true,"isWrapped":true}
Tue, 13 Oct 2015 22:50:15 GMT brunch:pipeline Compiling 'node_modules/jade-static-brunch/node_modules/jade/runtime.js' with 'JavaScriptCompiler'
Tue, 13 Oct 2015 22:50:
@ceremcem
ceremcem / iterate_over_class_or_method.py
Created September 12, 2015 10:17
Performance comparison between iteration over list of classes and list of class methods
import time
class a:
def do_something(self, x):
return x**2
def do_something1(self, x):
return x**2