Skip to content

Instantly share code, notes, and snippets.

View cagataycali's full-sized avatar

./c² cagataycali

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css" />
@cagataycali
cagataycali / 0_reuse_code.js
Last active September 11, 2015 13:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cagataycali
cagataycali / javascript_resources.md
Last active September 11, 2015 13:53 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@cagataycali
cagataycali / css_resources.md
Last active September 11, 2015 13:53 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@cagataycali
cagataycali / azureFileService.sh
Created November 22, 2016 17:12 — forked from vincent-dm/gist:211f90e4abc547282b7c
How to add Azure File Service storage as an SMB mount in Ubuntu Linux
sudo mkdir /shared
sudo mkdir /shared/folder
sudo chown ubuntuusername:ubuntuusername /shared/folder
touch ~/.credentials
echo "username=storageaccountname" | sudo tee ~/.credentials
echo "password=azureaccesskey" | sudo tee ~/.credentials
chmod 600 ~/.credentials
echo "" | sudo tee -a /etc/fstab
echo "//storageaccountname.file.core.windows.net/filesharename /shared/folder cifs vers=2.1,credentials=/home/username/.credentials 0 0" | sudo tee -a /etc/fstab
@cagataycali
cagataycali / gist:9e156f1d2936cabef25f09caa60e6bde
Last active July 29, 2018 21:19 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.bundle?platform=android&dev=false&minify=true" -o "android/app/src/main/assets/index.android.bundle"
@cagataycali
cagataycali / megep.json
Created March 13, 2018 07:23 — forked from vural/megep.json
megep.json
This file has been truncated, but you can view the full file.
[{"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL KURTARMA TEKNİKLERİ", "document": "http://megep.meb.gov.tr/mte_program_modul/moduller_pdf/Ambulanslar.pdf"}, {"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL KURTARMA TEKNİKLERİ", "document": "http://megep.meb.gov.tr/mte_program_modul/moduller_pdf/Hasta Taşıma Teknikleri.pdf"}, {"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL KURTARMA TEKNİKLERİ", "document": "http://megep.meb.gov.tr/mte_program_modul/moduller_pdf/Kurtarma.pdf"}, {"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL KURTARMA TEKNİKLERİ", "document": "http://megep.meb.gov.tr/mte_program_modul/moduller_pdf/Mesleki Hak Ve Sorumluluklar.pdf"}, {"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL KURTARMA TEKNİKLERİ", "document": "http://megep.meb.gov.tr/mte_program_modul/moduller_pdf/Triaj.pdf"}, {"main_category_name": "ACİL SAĞLIK HİZMETLERİ", "sub_category_name": "ACİL SA
@cagataycali
cagataycali / StandardFirmataPlus.ino
Created April 23, 2018 17:58 — forked from cookiengineer/StandardFirmataPlus.ino
Standard Firmata Plus firmware backup for Johnny Five
/*
Firmata is a generic protocol for communicating with microcontrollers
from software on a host computer. It is intended to work with
any host computer software package.
To download a host software package, please click on the following link
to open the list of Firmata client libraries in your default browser.
https://github.com/firmata/arduino#firmata-client-libraries
@cagataycali
cagataycali / UnsafeERC20.sol
Created October 31, 2018 12:46 — forked from carver/UnsafeERC20.sol
Unsafe ERC20 Example for Web3.py Workshop
pragma solidity ^0.4.25;
// This contract is an example, not to be used in production
// One example issue is that there are potential overflow/underflow bugs.
contract UnsafeERC20 {
mapping (address => uint256) private _balances;
uint256 private _totalSupply;