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
class ImportController << ApplicationController | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
#THIS METHOD TO SEND USER TO THE GOOGLE AUTHENTICATION PAGE. | |
def authenticate | |
# initiate authentication w/ gmail | |
# create url with url-encoded params to initiate connection with contacts api |
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
$("#logo").hide(); | |
$("#logo").bind("load", function () { $(this).fadeIn(); }); | |
}); | |
</script> |
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
/* | |
* jQuery Backstretch | |
* Version 1.2.4 | |
* http://srobbin.com/jquery-plugins/jquery-backstretch/ | |
* | |
* Add a dynamically-resized background image to the page | |
* | |
* Copyright (c) 2011 Scott Robbin (srobbin.com) | |
* Dual licensed under the MIT and GPL licenses. | |
*/ |
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
file=/Applications/Dropbox.app/Contents/Resources/check.icns | |
[ -e "$file" ] && mv -f "$file" "$file.bak" | |
unset file |
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
<?php | |
header('Content-type: text/json'); | |
header('Content-type: application/json'); | |
function savetwit ($username) | |
{ | |
//create the rss feed | |
$local_file = './twitterfeeds/'.$username.'.json'; |
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
require 'rubygems' | |
require 'streamio-ffmpeg' | |
threads = [] | |
i = 1 | |
Dir.glob('*.avi') do |f| | |
j = i.to_s | |
threads.push Thread.new { | |
begin |
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
#endif | |
#ifdef FRAGMENT | |
varying lowp vec3 xlv_TEXCOORD2; | |
varying lowp vec3 xlv_TEXCOORD1; | |
varying highp vec2 xlv_TEXCOORD0; | |
uniform lowp vec4 _WorldSpaceLightPos0; | |
uniform sampler2D _MainTex; | |
uniform lowp vec4 _LightColor0; |
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
-------- GLSL error: ERROR: Uniform precision mismatch '_NoiseOffset' | |
ERROR: Uniform precision mismatch '_Frequency' | |
ERROR: Uniform precision mismatch '_AnimSpeed' | |
ERROR: Uniform precision mismatch '_Time' | |
ERROR: Uniform precision mismatch '_Amplitude' | |
Vertex Shader: | |
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 UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
struct Triangle { | |
public int p1; | |
public int p2; | |
public int p3; | |
public Triangle(int point1, int point2, int point3) { |
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 UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
// Create a Sublime Text 2 project from a Unity project | |
// Includes folders and file types of your choosing | |
// Includes all assemblies for autocompletion in CompleteSharp package | |
public class SyncSublimeText : Editor |
OlderNewer