Skip to content

Instantly share code, notes, and snippets.

palaniraja palaniraja

Block or report user

Report or block palaniraja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@palaniraja
palaniraja / .jazzy.yaml
Created Jul 3, 2019
output of "jazzy --help config" from jazzy version: 0.9.6
View .jazzy.yaml
By default, jazzy looks for a file named ".jazzy.yaml" in the source
directory and its ancestors. You can override the config file location
with --config.
(The source directory is the current working directory by default.
You can override that with --source-directory.)
The config file can be in YAML or JSON format. Available options are:
@palaniraja
palaniraja / xcode-buildconfig-delete.sh
Created Jun 26, 2019
script to delete unwanted buildconfig from xcodeproj file
View xcode-buildconfig-delete.sh
#!/bin/bash
# get these ids by "grep -B 2 buildConfigurations project.pbxproj"
targets=("040030D22004301100C4B676" "0420B3DA1FD1E91B00F66B8C" "042171FE1F7EB27500B3578D" "0421731D1F7EB3EC00B3578D" "04CD5F511FD0D1650053BE87" "3461E09E1A7BF77600B666A1" "3461E0C21A7BF77600B666A1" "A0D180071F46067500E00C0C")
# get these xcodebuild -project YOURPROJ.xcodeproj -list
configsToSkip=("us-debug" "us-debug-free" "us-release" "us-release-free" )
@palaniraja
palaniraja / pdf2png.wflow
Created Jun 24, 2019
PDF to PNG - OSX Automator - Finder workflow
View pdf2png.wflow
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>444.42</string>
<key>AMApplicationVersion</key>
<string>2.9</string>
<key>AMDocumentVersion</key>
<string>2</string>
@palaniraja
palaniraja / out.html
Last active Mar 12, 2019
Find all the files changed between two commits and cumulated commit messages per file
View out.html
<html><head><style>td{white-space: pre;}</style></head><body><table border=1>
<tr>
<td>File: (file1.txt)</td>
<td>
5755793 commit from master (correct this time)
322afb2 file 1 modified, and to be tagged as v1
</td></tr>
<tr>
<td>File: (file2.txt)</td>
@palaniraja
palaniraja / alias.sh
Created Nov 12, 2018
alias - alias from my work machine to refer later (ohmyzsh + few custom)
View alias.sh
-='cd -'
...=../..
....=../../..
.....=../../../..
......=../../../../..
1='cd -'
2='cd -2'
3='cd -3'
4='cd -4'
5='cd -5'
@palaniraja
palaniraja / app.js
Last active Nov 1, 2018
React native - webview wrapper - keyboard issue
View app.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {StyleSheet, WebView, View, Text, SafeAreaView, KeyboardAvoidingView} from 'react-native';
@palaniraja
palaniraja / main.dart
Last active Oct 15, 2018
Flutter - Asynchronous programming snippet
View main.dart
import 'dart:convert';
import 'dart:async';
import 'dart:html';
void main(){
_getIPAddress() {
final url = 'https://httpbin.org/ip';
Future<HttpRequest> request = HttpRequest.request(url);
request.then((value) {
print(json.decode(value.responseText)['origin']);
@palaniraja
palaniraja / Default.idekeybindings
Last active Aug 20, 2018
xcode - behaviour keybindings from `~/Library/Developer/Xcode/UserData/KeyBindings`
View Default.idekeybindings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Menu Key Bindings</key>
<dict>
<key>Key Bindings</key>
<array>
<dict>
<key>Action</key>
@palaniraja
palaniraja / twitter.md
Created Aug 17, 2018
Twitter data size analysis
View twitter.md

twitter.txt is output of df -ah twitter exported data. Removed each ./tweet_media file sizes)

Stats on my account

  45 - Followers
 287 - Following
   2 - Listed
9930 - Tweets  
7527 - Favorites
@palaniraja
palaniraja / pilapse.py
Created Jul 26, 2018
PiLapse - Python script to take timelapse
View pilapse.py
#!/usr/bin/python
import os
import time
import subprocess
from time import sleep
import random
# Configuration
You can’t perform that action at this time.