command | what it does? |
---|---|
tmux | Starts new tmux session |
tmux attach | attaches to last openned tmux session |
This file contains 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
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[ExecuteInEditMode] | |
public class AnimateMaskableGraphic : MonoBehaviour { | |
private Material m_Material; | |
[Range(0f, 1f)] |
This file contains 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
#!/bin/bash | |
# usage: drupal-quick-dump database (assumes use of .my.cnf) | |
DB="$1" | |
DATE=`date +%Y%m%d` | |
# Dump Structure | |
echo "Starting to dump the table structure." | |
TABLES=`mysql --skip-column-names -e 'show tables' ${DB}` | |
mysqldump --complete-insert --disable-keys --single-transaction --no-data ${DB} ${TABLES} > ${DB}.${DATE}.sql |
This file contains 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
package com.vml.example; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.support.v4.widget.ResourceCursorAdapter; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* Ryan Mott - VML, Inc. |
This file contains 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/osascript | |
-- ryan mott | |
-- forked from bradchoate http://snipplr.com/view/8645/gather-windows/ | |
tell application "Finder" | |
-- get desktop dimensions (dw = desktop width; dh = desktop height) | |
set db to bounds of window of desktop | |
-- min width and height can be less than zero when multiple monitors arranged |
This file contains 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
package com.example; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.app.Fragment; | |
import android.app.FragmentManager; | |
import android.support.v13.app.FragmentStatePagerAdapter; | |
import android.util.SparseIntArray; | |
import android.view.ViewGroup; |