This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from datetime import datetime | |
| # === CONFIG === | |
| IMMICH_URL = "http://localhost:2283/api" | |
| API_KEY = os.environ.get("IMMICH_API_KEY") | |
| DATE_AFTER = "2025-08-25T00:00:00.000Z" | |
| DATE_BEFORE = "2025-08-29T00:00:00.000Z" | |
| HEADERS = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import requests | |
| import re | |
| html = requests.get('https://www.instagram.com/instagram/').text | |
| print('Instagramdan cektigim html boyutu: ', len(html)) | |
| pattern = '<script type="text\/javascript">window._sharedData = (.*?);<\/script>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -- coding: utf-8 -- | |
| import urllib | |
| import json | |
| import web | |
| import requests | |
| urls = ( | |
| '/.*', 'MainHandler' | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ Convolutional network applied to CIFAR-10 dataset classification task. | |
| References: | |
| Learning Multiple Layers of Features from Tiny Images, A. Krizhevsky, 2009. | |
| Links: | |
| [CIFAR-10 Dataset](https://www.cs.toronto.edu/~kriz/cifar.html) | |
| """ | |
| from __future__ import division, print_function, absolute_import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import re | |
| import sys | |
| entry_xml_path = sys.argv[1] | |
| print 'parsing: ', entry_xml_path | |
| lines = open(entry_xml_path, 'r').read().split('\n') | |
| entry_dict = {} | |
| entries = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # curl https://gist.githubusercontent.com/hakanu/7a8a14f60bdc8478d194/raw/3c02c7c3f0c30cee4348016ceb6a6d528a6e86ac/setup_dev.sh | bash | |
| # Base stuff. | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get -y install build-essential | |
| sudo apt-get -y install git | |
| sudo apt-get -y install screen | |
| sudo apt-get -y install ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Utility methods for Google Spreadsheets based on gspread library. | |
| Used mostly for logging. | |
| http://hakanu.net/2014/09/14/how-i-store-server-logs-in-google-spreadsheets/ | |
| Here are the dependecies: | |
| sudo apt-get install python-pip python-dev build-essential | |
| sudo easy_install gspread | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static String capitalize(String line) { | |
| String[] words = line.split(" "); | |
| StringBuilder sb = new StringBuilder(); | |
| for(String word: words) { | |
| sb.append(Character.toUpperCase(word.charAt(0))); | |
| sb.append(word.substring(1).toLowerCase(new Locale("tr", "TR"))); | |
| sb.append(" "); | |
| } | |
| return sb.toString(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../paper-tabs/paper-tabs.html"> | |
| <link rel="import" href="../paper-tabs/paper-tab.html"> | |
| <link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
NewerOlder