Skip to content

Instantly share code, notes, and snippets.

View autokludge's full-sized avatar

Jesse Robertson autokludge

View GitHub Profile
@autokludge
autokludge / CI_ide_helper.php
Created August 22, 2012 12:48 — forked from topdown/CI_phpStorm.php
Code Completion helper for CodeIgniter
<?php die('This file is not really here!');
/**
* ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER ---------------------
*
* Implements code completion for CodeIgniter in phpStorm
* phpStorm indexes all class constructs, so if this file is in the project it will be loaded.
* -------------------------------------------------------------------
* Drop the following file into a CI project in phpStorm
* You can put it in the project root and phpStorm will load it.
@autokludge
autokludge / ide_helper.php
Created August 22, 2012 12:48
Laravel3 IDE Helper
<?php
class Auth extends Laravel\Auth {}
/**
* @method static add(string $name, string $source, array $dependencies = array(), array $attributes = array())
* @method static string styles()
* @method static string scripts()
*/
class Asset extends Laravel\Asset {}
class Autoloader extends Laravel\Autoloader {}
class Bundle extends Laravel\Bundle {}
@autokludge
autokludge / Blade.tmLanguage
Created October 29, 2012 15:41
Blade lang with color support functions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>blade</string>
<string>blade.php</string>
</array>
<key>name</key>
@autokludge
autokludge / bladediff
Created October 29, 2012 16:10
Diff for blade syntax etc
diff --git a/Blade.tmLanguage b/Blade.tmLanguage
index 0ea39c9..0b22b9e 100644
--- a/Blade.tmLanguage
+++ b/Blade.tmLanguage
@@ -718,6 +718,10 @@
<key>include</key>
<string>#blade-hashes</string>
</dict>
+ <dict>
+ <key>include</key>
@autokludge
autokludge / gist:3974527
Created October 29, 2012 16:11
Diff for blade syntax etc
diff --git a/Blade.tmLanguage b/Blade.tmLanguage
index 0ea39c9..0b22b9e 100644
--- a/Blade.tmLanguage
+++ b/Blade.tmLanguage
@@ -718,6 +718,10 @@
<key>include</key>
<string>#blade-hashes</string>
</dict>
+ <dict>
+ <key>include</key>
@autokludge
autokludge / Speilberg0-Tomorrow-Night.tmTheme
Created November 20, 2012 12:20
speilberg0-tomorrow-night sublime color scheme
<?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>comment</key>
<string>http://chriskempson.com</string>
<key>name</key>
<string>Tomorrow Night</string>
<key>settings</key>
<array>
{
"auto_complete": true,
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Dayle Rees Color Schemes/LastNight.tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"detect_slow_plugins": false,
"disable_tab_abbreviations": true,
"draw_white_space": "all",
@autokludge
autokludge / gist:4714990
Last active December 12, 2015 04:29
full width videos for youtube watch page (change height value for wider screens, 760 works well for 1280 wide screens)
// ==UserScript==
// @name Youtube Resize
// @namespace http://speilberg0.github.com
// @version 0.2
// @description make wide youtube full width
// @match http*://www.youtube.com/watch*
// @copyright 2012+, Speilberg0
// ==/UserScript==
st = document.createElement('style');
st.textContent = '#watch7-container.watch-medium #watch7-video-container {padding-left :0 !important;}\
{
"sublimelinter": "load-save",
"sublimelinter_executable_map":
{
"php": "C:/php/php.exe",
"javascript" : "C:/Program Files/nodejs/node.exe",
"css" : "C:/Program Files/nodejs/node.exe"
},
"jshint_options":
@autokludge
autokludge / change_Detail_view_size.iLogicVb
Created January 22, 2019 01:19
Inventor iLogic change detail view radius (circle only)
Dim oDrawDoc As DrawingDocument = ThisDrawing.Document
Dim oSheet As Sheet
Dim oSheets As Sheets
'Dim oView As DrawingView
Dim oViews As DrawingViews
Dim oSizeStr As String
Dim oSize As Double
oSizeStr = InputBox("Enter Desired Size", "Size", "")
If Not IsNumeric(oSizeStr) Then