Skip to content

Instantly share code, notes, and snippets.

View filipac's full-sized avatar

Filip Iulian Pacurar filipac

View GitHub Profile
@filipac
filipac / gist:320b35cb1122a63b373213333fc8b249
Last active March 9, 2023 23:49
Hyper key without CMD
{
"title": "Caps Lock → Hyper Key (⌃⌥⇧)",
"rules": [
{
"description":"Caps Lock with Hyper Key + tab",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": {
@filipac
filipac / keychron-k1-siri-to-eject.json
Last active July 22, 2020 13:42 — forked from zvuc/keychron-k1-siri-to-eject.json
screenshot with fn + cmd
{
"title": "Keychron K2 Filip",
"rules": [
{
"description": "fn + right command to screenshot to clipboard",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": {
<draggable v-model="rows" :options="{group:'rows'}" :move="move" element="tbody">
<tr v-for="(row, idx) in rows" :key="row.id" :draggable="!readOnly">
<editable custom-tag="th" :read-only="readOnly" :text="row.title"
@update="row.title=$event"></editable>
<editable custom-tag="td" :read-only="readOnly" :text="row.before"
@update="row.before=$event"></editable>
<editable custom-tag="td" :read-only="readOnly" :text="row.after"
@update="row.after=$event"></editable>
<td v-if="!readOnly">
<a href="javascript:;" @click="deleteRow(idx)" class="btn btn-primary btn-sm"><i
<?php
function onBeforePageStart() {
$this['contentLeft'] = \RainLab\Pages\Classes\Snippet::processPageMarkup(time().'1',$this->layout->getThemeAttribute(), $this['contentLeft']);
$this['contentRight'] = \RainLab\Pages\Classes\Snippet::processPageMarkup(time().'2',$this->layout->getThemeAttribute(), $this['contentRight']);
}

Keybase proof

I hereby claim:

  • I am filipac on github.
  • I am filipacro (https://keybase.io/filipacro) on keybase.
  • I have a public key ASDuGmAcd6f6vFOmly4QZEYH5o5XKvXXHXfiTES_t9bsCgo

To claim this, I am signing this object:

func makeGetCall() {
// Set up the URL request
let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1"
guard let url = URL(string: todoEndpoint) else {
print("Error: cannot create URL")
return
}
let urlRequest = URLRequest(url: url)
// set up the session
### Keybase proof
I hereby claim:
* I am filipac on github.
* I am filipac (https://keybase.io/filipac) on keybase.
* I have a public key whose fingerprint is EB16 87B6 7F15 AD09 6F34 721F 9F09 CB64 159B 7D38
To claim this, I am signing this object:
@filipac
filipac / app.php
Created February 2, 2015 19:50
laravel 5 cofig pentru local
<?php
$config = [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
<div style="width:100%; height:100%">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<?php
$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
$Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android");
$webOS = stripos($_SERVER['HTTP_USER_AGENT'],"webOS");
if($iPod || $iPhone || $iPad): ?>
<script src="http://jwpsrv.com/library/Rvg5ODVyEeKdAyIACp8kUw.js"></script>
@filipac
filipac / DivizoriProprii.java
Created December 5, 2013 08:52
Divizorii proprii problema 10
import java.util.Scanner;
public class DivizoriProprii {
static Scanner t = new Scanner(System.in);
public static void main(String[] args) {
int n,x,nrd,d,max,y=0;
System.out.print("n=");
n=t.nextInt();
max = 0;
for(x=1; x<=n; x++) {
nrd = 0;